Forum Discussion

Jace_45978's avatar
Jace_45978
Icon for Nimbostratus rankNimbostratus
Jun 16, 2016

VS irule mulitple pools, need assistance if any one pool goes down want VS to be down.

Hello. I have instance where I have irule applied to VIP that makes decision on pool based on URI which is working fine. my issue is that we would like to have if one pool goes down that the VIP is also marked down. I have though of using alias monitor and apply to each pool but it seems like there would be simpler solution? running old 10.2.4 code.

VIP:

 


virtual xyz-443 {
   snat automap
   pool abc_80
   destination 1.1.1.1:443
   ip protocol 6
   rules {
      xyz_pool_irule
     }
   profiles {
      http_encrypt_cookie {}
      xyz-ssl-profile {
         clientside
      }
      tcp-lan-optimized {}
   }
}

 

irule:

 


rule xyz_pool_irule {
  when HTTP_REQUEST {
    log local0. "Request for [], from [IP::client_addr]"
    if { [HTTP::uri] starts_with "/ATCAdvisor" } {
            pool abc_80
    } elseif { [HTTP::uri] starts_with "/TarmacMonitor" } {
                pool def_81
    } elseif { [HTTP::uri] starts_with "/NotificationServices" } {
                pool ghi_82
    }
  }
}

 

pools:

 


pool abc_80 {
   lb method member least conn
   monitor all http
   members {
      10.243.34.82:80 {}
      10.243.34.83:80 {}
pool def_81 {
   lb method member least conn
   monitor all tcp
   members {
      10.243.34.82:81 {}
      10.243.34.83:81 {}
pool ghi_82 {
   lb method member least conn
   monitor all tcp
   members {
      10.243.34.82:82 {}
      10.243.34.83:82 {}

 

again the idea is that if any of the 80-82 pools are down the VIP is marked down. any simple solution would help. thanks Jace

2 Replies