Forum Discussion

Prince's avatar
Icon for Altostratus rankAltostratus
Sep 07, 2017

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 "" } {
persist none