02-26-2014 09:00 AM
Hi All,
I've been tasked to assist dev team perform load balancing test. There will be two servers in the server farm. What is the CLI command to toggle a server out of a server farm during the test? Also what is the show command for verifying which server in the pool have the sessions?
This is the test plan:
Thanks in advance,
Adil
Solved! Go to Solution.
02-26-2014 09:18 AM
Hi Adil,
To see which server has the connection, you can do the following:
show serverfarm
show conn
To me more specific you can also filter on the basis of IP address:
Example
switch/Admin# show conn address 10.150.54.216 netmask 255.255.255.255
conn-id np dir proto vlan source destination state
----------+--+---+-----+----+---------------------+---------------------+------+
157045 3 in TCP 5 10.150.54.216:49385 10.86.212.33:23 ESTAB
157455 3 out TCP 5 10.86.212.33:23 10.150.54.216:49385 ESTAB
Regards,
Kanwal
02-26-2014 09:05 AM
Hi Adil,
To get the server out of loadbalancing equation, you can simply go to serverfarm and do "no inservice" for the server you intend to take out or you can make the probe to fail or you can simply take the server out of serverfarm by doing "no rserver
Also, regarding your testing, if you have two servers to which traffic will be loadbalanced, connection failover will not happen. Existing connections would be dropped or RST(depending upon what you configure) and new connections would be sent to server 2. Once the server 1 comes back up, the connections would again start getting loadbalanced to both servers. You cannot have failover of connections from 1 server to another in same serverfarm.
Let me know if you have any questions.
Regards,
Kanwal
02-26-2014 09:12 AM
Hi Fnu,
Thank you for your response. Can you answer my last question? It is repeated here below.
Also what is the show command for verifying which server in the pool have the sessions?
Adil
02-26-2014 09:18 AM
Hi Adil,
To see which server has the connection, you can do the following:
show serverfarm
show conn
To me more specific you can also filter on the basis of IP address:
Example
switch/Admin# show conn address 10.150.54.216 netmask 255.255.255.255
conn-id np dir proto vlan source destination state
----------+--+---+-----+----+---------------------+---------------------+------+
157045 3 in TCP 5 10.150.54.216:49385 10.86.212.33:23 ESTAB
157455 3 out TCP 5 10.86.212.33:23 10.150.54.216:49385 ESTAB
Regards,
Kanwal
02-26-2014 09:28 AM
Thank you for your guidance!
02-26-2014 09:29 AM
Welcome! Happy to help.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: