Forum Discussion
CHofmann_213970
Feb 02, 2016Nimbostratus
LB::server pool returns empty string
I need to switch between two different pools, based on the url. I found the following pattern in several answers:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP...
Brad_Parker
Feb 02, 2016Cirrus
In client accepted I'm not sure how you would have a value for [LB::server pool] as no load balancing decision has been made yet. I've always been under the impression LB_SELECTED has to fire before any LB variables will be populated.
- Brad_ParkerFeb 02, 2016CirrusIt makes sense in your logging that it would be populated after you issue the pool command.
- Brad_ParkerFeb 02, 2016CirrusMissed the key part of why it should be working as Kai says, "If no server was selected yet or all servers are down, returns default pool name." What version are you running?
- Kai_WilkeFeb 02, 2016MVPYep, its should normaly work like the OP has implemented the code, but it doesnt. Even SOL9800 is recommending an alike iRule for non-OneConnect Virtuals. So [LB::server pool] dont require a LB decision, but [LB::server addr] does... Cheers, Kai
- CHofmann_213970Feb 03, 2016NimbostratusThanks for the suggestion. I have edited the code to incorporate your assumptions (see edited post). The behavior remains similar to the original code.
- CHofmann_213970Feb 03, 2016NimbostratusOn another note: I am a bit buffled that this answer has been marked as solution. It is not a solution to the problem. In fact it seems to contain false assumptions. Marking this as solution is not helpful. Not for me, nor the community, nor this forum.
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