Forum Discussion

cymru81's avatar
cymru81
Icon for Altocumulus rankAltocumulus
Apr 17, 2015

irule only working intermittently

Hi

 

We are using the following irule, when we visit the site https://xyz.site.co.uk the majority of the time it doesnt work until two or three refreshes. Can anyone advise what the problem could be?!

 

when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { “abc.site.co.uk” { pool pool_websites_https member 10.1.2.1 80 } “xyz.site.co.uk” { pool pool_websites_https member 10.1.2.2 80 }

 

default { pool pool_websites_https } } }

 

The site is on vip 10.1.0.50.

 

Cheers.

 

5 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    I wonder if it's a simple tcp connection/http request issue. A bigip is connection orientated so multiple http requests on the same tcp connection might not be delivered to the right pool if you're doing this selection in an irule.

     

    See Using an iRule to load balance HTTP requests to multiple pools

     

    I'd try a oneconnect profile on the virtual server.

     

    Hope this helps,

     

    N

     

  • its not a live vip so only I would be connecting?

     

    what is a oneconnect profile?

     

    is there a better irule I could use to achieve this?

     

  • Hi,

     

    Probably it's too basic but maybe worth asking - is this vip terminating SSL or working as proxy SSL?

     

    Piotr

     

  • any other suggestions for a better rule then please :)?

     

    the vip has the ssl profile but it forwards onto http internal connections.