Forum Discussion
Roger_Wolfson_8
Aug 26, 2006Nimbostratus
Advice on "persist hash" load balancing
Hi, I've been reading through past post about load balancing certain requests based on part of the request data using the "persist hash" method, but I haven't been able to implement it successfully. T...
Roger_Wolfson_8
Aug 28, 2006Nimbostratus
Thanks for the tips. I tweaked some log level settings and got it logging.
I checked and OneConnect is disabled, so that's not an issue here.
I also had to tweak the regexp to conform to the tcl implementation, and got my match variable set correctly. However, the same problem is appearing where any request that hits the persist command gets routed to the same server regardless of hash value. It comes down to this:
persist hash "$idmatch"
log local0. "persisting on key $idmatch"
I've also tried it without quotes in the first line. The log reads:
HTTP_REQUEST: persisting on key 1570
HTTP_REQUEST: persisting on key 1571
HTTP_REQUEST: persisting on key 1572
etc., yet all these requests are going to the first node in the pool. I've tried several dozen hash keys so the odds are miniscule of them all hash-modding to the same one of two servers. Requests that bypass this command seem to load-balance correctly.
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