Redirect port for a other vps ?

Screamfox

Junior Member
May 2, 2018
1
0
1
Hello people,

I am new on this forum, i go to post here a question so this is my question,


I have actually 2 VPS server with Linux Ubuntu, with my company application, so the question is how can i redirect the request port on server N1 (This is the name for the 1st server) to a server N2 only when the server N1 is not responding or fail (or when cpu get a use to 100%) because when the cpu get 100% of use no body can log in our application (Is not a web site is a application "Software that use a port like 8913") so when people try to log if the server one have a issue they can't log, my real question is how can i redirect the server port to a other server when the server is down or when she has got a issue, something like dns failover but dns failover check every time if the port is open and he don't redirect because yes the port is open and reply to resquest but no body can login because the server reach 100% and no body can log in the app, because the server is over used, and i think if i can redirect all request to a other server N2 for this exemple i can fix this issue, so this is a picture to understand

this is a pictur what dns failover do,



So i whant the "failover monitoring" check if the server "Primary Server" people can log in port 8913 if the server reply no i whant all trafic is redirected to secondary server, the problem is on commun dnsfailover he check if the server reply in the request (Port is open) if it is yes no redirect if it's no he redirect to Secondary server, the problem in our case is the server reply every time yes port is ok but people can't log, and in this case we whant the server redirect all trafic in other server (In this picture Secondary Server)

if somebody can help thank you very much

Sincerely,
Screamfox
 

RussDraper

Junior Member
May 8, 2018
8
0
1
You are describing a load balancer or clustering. You might even be able to use a proxy in front to do this also. There are many ways to do this, and I charge big money to help clients implement it :) Try googling those two terms and see where you get stuck again.
 

ASK THE COMMUNITY