Forum Discussion
winston_85158
Nimbostratus
Jan 09, 2015LB::reselect not selecting new member
Hi,
I am getting some unexpected results while trying to reselect a new pool member during LB_FAILED event. The pool is using 'least connections (member)' as load balancing algorithm.
when LB_FAILED {
log local0.info "Retries = $retries."
if { $retries < [active_members [LB::server pool]] } {
log local0.info "Marking node down [LB::server]."
catch { LB::down }
log local0.info "Active members are [active_members -list test_a]."
LB::mode rr
LB::reselect
log local0.info "Reselected [LB::server]."
incr retries
}
}
This leads to the following output:
Retries = 0.
Marking node down /web/test_a 10.10.10.10 10002.
Active members are {10.10.10.10 10001} {10.10.10.11 10001} {10.10.10.11 10001}.
Reselected /web/test_a 10.10.10.11 10002.
Retries = 1.
Marking node down /web/test_a 10.10.10.10 10002.
Active members are {10.10.10.10 10001} {10.10.10.11 10001} {10.10.10.11 10001}.
Reselected /web/test_a 10.10.10.10 10002.
After that I the request seems to be aborted (connection reset) instead of being send to another member.
Any suggestions?
Regards,
Richard
1 Reply
- cjunior
Nacreous
I remember having gone through this before but it was because of persistence.
if I'm not mistaken, at the time, I solved this by using "persist none", "LB::detach" and "HTTP::retry" in together with HTTP_REQUEST event.
Maybe this link will help you:
https://devcentral.f5.com/questions/code-review-http-conditionally-reselect-for-active-connections-based-on-persistence-when-member-down-or-disabled
https://devcentral.f5.com/questions/httpretry-and-lbreselect-not-working-as-expected-22346
I hope it helps you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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