Forum Discussion
gtfx_34287
Nimbostratus
Dec 28, 2009Disabel node for a specific request
Hello,
I have a virtual server that manages many hosts on Apache level with virtual hosts. What i need to do is the following:
When a request comes for a specific [HTTP::host] i want it to load balance it on all the members of the pool for that specific VIP. On any other cases i want to leave one specific member out of it just for that request.
What is the best way to do it?
Thanks in advance.
Leonid
5 Replies
- The_Bhattman
Nimbostratus
What are the conditions you want so that you leave that member out of the request?
Bhattman - gtfx_34287
Nimbostratus
for instance i have 5 domains that are getting handled by that VIP.
When a request comes to 'a', 'b' and 'c' domains i want to use this specific member as part of the pool. When the request is for other domains, do not use it.
I hope this is more clear.
Thanks - The_Bhattman
Nimbostratus
I suppose you can do the following
define pool which does not contain the member that will be used for by A, B and C.when HTTP_REQUEST { switch -glob [HTTP::host] { "www.domaina.com" - "www.domainb.com" - " www.domainc.com" - { node 10.1.2.200 80 } default { pool pool_others } } }
I hope this helps
Bhattman - gtfx_34287
Nimbostratus
From what i understand, this will redirect all thhe traffic to the node. I want to be part of the pool, just as any other member in some cases and out of the pool at the other.
Currently i"m thinking about creating two almoust identical pools with this node only in one of them and doing this method.
Thanks - The_Bhattman
Nimbostratus
It will only direct Domain A, B and C to that node and the rest to the pool that does not contain the node. Unless you need the opposite. Then you would do the opposite with the irule.
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