Forum Discussion
load balance using http methods
Hi Ahmed,
Can you try this iRule?
when HTTP_REQUEST {
if { [HTTP::method] ne "GET" } {
node node1ip port
}
# GET requests are forwarded to the default pool. No need to use else statement.
}- Ahmed_MohsenOct 14, 2021
Nimbostratus
Thank you for your reply .
Kindly when i use this iRule that's mean Node1 will not receives GET requests but it can receives " Post, Patch, Delete" requests and F5 BIG-IP will continue Load balance GET Requests to Node2 and Node3 ? Please advice
- Ahmed_MohsenOct 14, 2021
Nimbostratus
Kindly when i try to deploy iRule it shown me an error
- Oct 14, 2021
You must add } (closing brace) to row 5.
With this irule, ALL methods will forwarded to node1, only GET requests will forwarded to node2 and node3.
- Ahmed_MohsenOct 17, 2021
Nimbostratus
Thank you i will try it :)
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
