Forum Discussion
Stefan_Klotz
Cumulonimbus
Jun 08, 2011persist lookup with any virtual option
Using the following command:
[persist lookup source_addr "[IP::client_addr] any virtual" node]
What happend if there a multiple entries in the persistence table for the same source address? I guess I get back the result of the first match.Is there any possibility to get some kind of a list back? Otherwise how can I ensure to get back only the entries from the VS where this persistence should be used?
Or is this a basic drawback of the any virtual option?
Or do I have to use the "pool " option with all possible pool names lets say in a foreach loop until I have a match?
Thank you!
Ciao Stefan üôÇ
- hoolio
Cirrostratus
Hi Stefan, - Stefan_Klotz
Cumulonimbus
I have two virtual servers where I need sourceIP persistence when jumping between them. That's normally no problem using the default Across Virtuals option. The problem now is, that the poolmembers of each virtual server are different. It's something like this: - hoolio
Cirrostratus
Default persistence requires that the pool name and member be the same. Do you want to map pool1's member1 to pool2's member1 and pool1's member2 to pool2's member2? - Stefan_Klotz
Cumulonimbus
Hi Aaron, - hoolio
Cirrostratus
Source IP persistence maps the client IP to a pool name and member IP:port. So it won't work if the pool members are different. Browsers will ignore a cookie set for one domain (example1.com) when they requested a different domain (example2.com). Just to clarify, are the two FQDNs different subdomains (sub1.example.com and sub2.example.com) on the same domain? If so, the cookie idea would work if you set the domain on the cookies to .example.com. - Stefan_Klotz
Cumulonimbus
Hi Aaron,pool [LB::server pool] member [lindex [active_members -list [LB::server pool]] $instance]
pool [LB::server pool] member [lindex [lindex [active_members -list [LB::server pool]] $instance] 0]
- hoolio
Cirrostratus
Nice work! Glad that worked for you.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects