Forum Discussion
Change load balancing method using iRule
Hello Experts,
I have a requirement where i need to change the load balancing method based on some specific request header.
Current Config:
-
VS with destination persistence.
-
Default load balancing method of least connections.
Requirement: - Because of current configuration we are observing that when traffic is coming to the VS for a specific domain, it is going to 1 of the pool members and making the load on the server to 100%.
I would like to use iRule to remove the persistence and also change the persistence method to RR only for this specific request.
Appreciate your advise on this :
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "http://www.abc.com" } {
persist none
}
}
- CharlesCS
Cirrus
In addition to removing persistence, you'll also need to change the load-balancing method via the
command. See the LB::mode page for details.LB::mode
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