Forum Discussion
Multiple server with one VS
- Nov 20, 2022
Abdou76 ,
sure you can do this ,
try this :when HTTP_REQUEST { if {[HTTP::host] eq "abc.com"}{ pool pool_1 } elseif {[HTTP::host] eq "xyz.com"}{ pool pool_2 } elseif {[HTTP::host] eq "ghl.com"}{ pool pool_3 } }Hope it works with you.
Regards - Nov 20, 2022
Hi mohamedT
hank you for your great help
Hi Abdou76 ,
you wrote the pool_names wrong inside iRule ,
try to take it "copy" From pool list and "Past" it inside iRule.
Pool name inside irules are Case sensitive , so you must respect lowercase and uppercase letters.
This error related to this.
Try again and inform me.
I did exactly your recommendation copy and past !!
- Nov 18, 2022
Okay , this error isn’t relevant to irule itself , there is a mismatching wtih irule’s pool selection and the real pools that you created.
> could you please remove the gap between ( Pool ) and ( Pool_name ) in irule.
I mean ,
line 3 : you write it
pool PREDOM_APP_pool
modify it to
pool PREDOM_APP_pool
or take the script from here directly.
test it again please. - Abdou76Nov 18, 2022
Cirrus
Hi mohamed
It's a same problem, pool not found.
But if i use old irule, i will not found this error.
(Sorry for my english, because i speak french)
- Nov 18, 2022
do not worry about that,
Could you please try the LTM policy that I attached in the first reply. - Abdou76Nov 18, 2022
Cirrus
my VS is always Blue.
- Nov 18, 2022
Did it work with you ?
I mean it redirects you correctly and choose the pool correct or not.
Blue squire does not drop traffic it accepts it without issues such as green circle , so it should work with you.
until now , I do not know why the irule does not work with you. - Abdou76Nov 18, 2022
Cirrus
Hi mohamed
Thank you verry much for your follow-up, i'll leave the rest for Tomorrow.
- Nov 18, 2022
Okay , if you need any help you can mention me
- Abdou76Nov 20, 2022
Cirrus
It worked, I created new pools.
Before I used pools that are created with iapp.
Thanks a lot for your help.
I have one last question, in the case of 3 pool what will become of the syntax of irule.Thank you
- Nov 20, 2022
Hi Abdou76 ,
Great News ,
what is the needed Condition for the third pool , as the selection of pool_1 and pool_2 is based on what is coming in hostname inside Http Requests , so what is the third condition that based on we select the third pool.
Or you need this Pool as a fallback or last resort or make it as a default pool requests directed to if neither pool_1 nor Pool_2 selected.
I am waithing your reply.
Regards - Abdou76Nov 20, 2022
Cirrus
Hi mohamed
I mean, what will become syntaxe of irule in this case of:
abc.com pool1
xyz.com pool2
ghi.com pool3
Regards
- Nov 20, 2022
Abdou76 ,
sure you can do this ,
try this :when HTTP_REQUEST { if {[HTTP::host] eq "abc.com"}{ pool pool_1 } elseif {[HTTP::host] eq "xyz.com"}{ pool pool_2 } elseif {[HTTP::host] eq "ghl.com"}{ pool pool_3 } }Hope it works with you.
Regards - Abdou76Nov 20, 2022
Cirrus
Hi mohamedT
hank you for your great help
- Nov 20, 2022
Abdou76 ,
I’m happy for you.
Most welcom brother !
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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