Forum Discussion
get persistent records returns empty array
Hi, we are using BigIP Version 11.2 and iControl 10.2
Unfortunately the method get_persistent_records on a pool does return only empty array.
LocalLBPersistenceMode[] mode = new LocalLBPersistenceMode[]{LocalLBPersistenceMode.PERSISTENCE_MODE_COOKIE}; LocalLBPersistenceRecord[][] records = m_pool.get_persistence_record(new String[]{pool}, mode);
The pool has persistent cookies enbled, means the browser shows the BIGipServer cookie in the browser when opening the url to the pool.
I have tried it also with all the other modes, but that does not help.
What I´m doing wrong ?
Regards Robert
Hi Rob,
If you are using Cookie Persistence then the system should not have any persistence records. That information is injected into the cookie and given to the Client.
Try switching our query to PERSIST_MODE_NONE and see what you get, or query a pool with an alternate persistence type that the system does track.
LocalLB::Pool::get_persistence_record
- Rob_125924NimbostratusYou mean iwth cookie persistence there will be never any persistence records ? Is there maybe another possibility to invalidate the persitent cookie ? If I force offline the pool member then enable it again then the same vm is used. How to prevent that ?
- Michael_YatesNimbostratus
Hi Rob,
If you are using Cookie Persistence then the system should not have any persistence records. That information is injected into the cookie and given to the Client.
Try switching our query to PERSIST_MODE_NONE and see what you get, or query a pool with an alternate persistence type that the system does track.
LocalLB::Pool::get_persistence_record
- Rob_125924NimbostratusYou mean iwth cookie persistence there will be never any persistence records ? Is there maybe another possibility to invalidate the persitent cookie ? If I force offline the pool member then enable it again then the same vm is used. How to prevent that ?
- Rob_125924Nimbostratus
Hi Michael, I get the same result if I use PERSISTENCE_MODE_NONE :-(
- Michael_YatesNimbostratus
Have you tried running the query against a Pool with a source_addr Persistence?
you could delete the cookie with an iRule, or force another load balancing attempt. setting the cookie with lower timeout might help somewhat.
there are different forms of cookie persistence, in some you can have the backend server set the cookie. that might help in this scenario.
but with cookie persistence you give away from control.
- Rob_125924Nimbostratus
Hi, our new solution will be that we will remove the pool member from the pool to prevent direct connection to the member despite the member is added again and disabled. I´m not allowed to change the persistence mode therefore this will be our solution
Recent Discussions
Related Content
* 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