IP server and load balance
joseanio
Posts: 42
HI all,
I am writing a code with 14 tcp servers started. the port connections are 6001 to 6014. As we know each server accept only one connection, and each client need to have specified the AMX ip address and the specific port to connect to the server.
So, I would like to know if is there a way to create a load balance , a pool of these servers , these way all client need specify AMX ip address and the port 6001 for example, ( as occurs in web servers hosted in cloud ) this way if the first server of pool is occupied the system send the request to the second server of pool, or to third, or fourth ,etc.
thanks in advance
DEFINE_START
wait 50
{
ip_server_open(dvSvr01.PORT,6001,IP_TCP)
ip_server_open(dvSvr02.PORT,6002,IP_TCP)
ip_server_open(dvSvr03.PORT,6003,IP_TCP)
ip_server_open(dvSvr04.PORT,6004,IP_TCP)
ip_server_open(dvSvr05.PORT,6005,IP_TCP)
ip_server_open(dvSvr06.PORT,6006,IP_TCP)
ip_server_open(dvSvr07.PORT,6007,IP_TCP)
ip_server_open(dvSvr08.PORT,6008,IP_TCP)
ip_server_open(dvSvr09.PORT,6009,IP_TCP)
ip_server_open(dvSvr10.PORT,6010,IP_TCP)
ip_server_open(dvSvr11.PORT,6011,IP_TCP)
ip_server_open(dvSvr12.PORT,6012,IP_TCP)
ip_server_open(dvSvr13.PORT,6013,IP_TCP)
ip_server_open(dvSvr14.PORT,6014,IP_TCP)
}
I am writing a code with 14 tcp servers started. the port connections are 6001 to 6014. As we know each server accept only one connection, and each client need to have specified the AMX ip address and the specific port to connect to the server.
So, I would like to know if is there a way to create a load balance , a pool of these servers , these way all client need specify AMX ip address and the port 6001 for example, ( as occurs in web servers hosted in cloud ) this way if the first server of pool is occupied the system send the request to the second server of pool, or to third, or fourth ,etc.
thanks in advance
DEFINE_START
wait 50
{
ip_server_open(dvSvr01.PORT,6001,IP_TCP)
ip_server_open(dvSvr02.PORT,6002,IP_TCP)
ip_server_open(dvSvr03.PORT,6003,IP_TCP)
ip_server_open(dvSvr04.PORT,6004,IP_TCP)
ip_server_open(dvSvr05.PORT,6005,IP_TCP)
ip_server_open(dvSvr06.PORT,6006,IP_TCP)
ip_server_open(dvSvr07.PORT,6007,IP_TCP)
ip_server_open(dvSvr08.PORT,6008,IP_TCP)
ip_server_open(dvSvr09.PORT,6009,IP_TCP)
ip_server_open(dvSvr10.PORT,6010,IP_TCP)
ip_server_open(dvSvr11.PORT,6011,IP_TCP)
ip_server_open(dvSvr12.PORT,6012,IP_TCP)
ip_server_open(dvSvr13.PORT,6013,IP_TCP)
ip_server_open(dvSvr14.PORT,6014,IP_TCP)
}
0
Comments