Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Best way to remove/add server from farm during LB testing

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:

  • •1.       Open sessions to each of the Test servers to verify that they are working
  • •2.       Open session to the VIP for the Test environment, and identify which server has the VIP connection
  • •3.       Take down server #1 (assumed) of the Test environment
  • •4.       Verify that #1 server is down, and that the VIP session switched over to #2 server with minimal interruption
  • •5.       (consider interfaces to other systems)
  • •6.       Start new session and verify that it goes to #2 server
  • •7.       Bring up #1 server and take down #2 server
  • •8.       Verify that #2 session down, and both VIP sessions switched back to #1 server
  • •9.       (consider interfaces to other systems)
  • •10.   Bring up #2 server

Thanks in advance,

Adil

  • Application Networking
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Best way to remove/add server from farm during LB testing

Hi Adil,

To see which server has the connection, you can do the following:

show serverfarm detail

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

5 REPLIES
Cisco Employee

Best way to remove/add server from farm during LB testing

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

New Member

Best way to remove/add server from farm during LB testing

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

Cisco Employee

Best way to remove/add server from farm during LB testing

Hi Adil,

To see which server has the connection, you can do the following:

show serverfarm detail

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

New Member

Best way to remove/add server from farm during LB testing

Thank you for your guidance!

Cisco Employee

Best way to remove/add server from farm during LB testing

Welcome! Happy to help.

137
Views
0
Helpful
5
Replies
This widget could not be displayed.