Forum Discussion

JCohen's avatar
JCohen
Ret. Employee
Oct 21, 2008

node select expression behavior

When selecting a node that is down or unavailable, the pool reselects base on the LB method. Is there any way to disable that reselect behavior? The purpose of being able to choose a member specifically is for troubleshooting or testing (at least in this case).

 

 

I get the desired behavior if I use a rule and choose pools with only one member. I was just trying to avoid having to config multiple pools if possible.

 

 

The pool config I am trying to use is:

 

 

class uat-site-servers {

 

"server1.site.com 10.1.1.1:80"

 

"server2.site.com 10.1.1.2:80"

 

}

 

 

pool uat-site {

 

lb_method predictive_member

 

min_active_members 1

 

select mapclass2node(http_host, uat-site-servers)

 

persist cookie

 

cookie_mode insert

 

cookie_expiration 0d 08:00:00

 

member 10.1.1.1:http

 

member 10.1.1.2:http

 

}

 

 

But if someone does http://server2.site.com/index.html and server2 is down, the pool balances to server1. This in turn lets the developer believe that server2 is up, when in fact it is not.

 

 

Is this just the behavior and I'm stuck with it, or is there an option to the node select I am missing?

 

 

Jason
No RepliesBe the first to reply