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.

Bronze

Connection to the same real server all the time

There are 2 real servers in a server farm. Is there a way to route a connection from a particular cilent to the a particular real server in the serverfarm through the VIP.

5 REPLIES
Cisco Employee

Connection to the same real server all the time

Hi,

On which product are you trying to do this? The answer is different on CSS, CSM or ACE

Daniel

Bronze

Connection to the same real server all the time

Cisco ACE

CF

Cisco Employee

Connection to the same real server all the time

On the ACE, there are two possibilities:

If you are using IP stickiness, you can create a static sticky entry. This will force a client to a specific server as long as this server is available. If this server is down, it will send it to a different one. The way to configure this is by using the "static client source x.x.x.x rserver " command inside the sticky group configuration.

The second option would be creating a HTTP load-balance class-map with a "match source-address" statement and then send these to a serverfarm composed of only the server you want to use. This approach is more complex to implement and has the drawback that if the server goes down, connections from this client would be dropped. On the other hand, it doesn't need IP stickiness to work.

If you need more details regarding any of the two solutions, just let me know.

Daniel

Bronze

Connection to the same real server all the time

Hi Daniel,

sticky ip-netmask 255.255.255.255 address source TEST

  timeout 60

  replicate sticky

  serverfarm TEST-SF

  static client source 1.1.1.1 rserver rs1

Will this config work?

CF

Cisco Employee

Connection to the same real server all the time

Hi

The configuration of the sticky group itself is fine (including the static entry), but you don't configure the serverfarm inside the sticky group.

For more details and examples of how stickiness is configured, please, check the link below:

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/sticky.html#wp1096253

Daniel

256
Views
0
Helpful
5
Replies