Forum Discussion
Ahmed_Mohsen
Nimbostratus
Oct 13, 2021load balance using http methods
We have 1 read/write node and two Read-only nodes, so we want all the Get http requests to be distributed equally in them and all other requests like POST, Patch, Delete to be forwarded to read/write...
Oct 13, 2021
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.
}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