Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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
}
}
0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

In addition to removing persistence, you'll also need to change the load-balancing method via the LB::mode command. See the LB::mode page for details.

0