Forum Discussion

Meshal_119384's avatar
Meshal_119384
Icon for Nimbostratus rankNimbostratus
Feb 01, 2015

simple irule to load balance between two pool

Hi all

 

i need simple irule to load balance between two pool , the idea i have two pools and i need to assign the two pools to one VS

 

1 Reply

  • first question would be why? why not add all poolmembers to one pool? or are you looking for a specific situation when to use the second pool?

     

    then my remark would be why not try something yourself, it really helps if you understand what you do for future extensions or when it doesn't work like you expect.

     

    you can find many examples with some searching.

     

    but assuming you are looking for http loadbalancing you would use the HTTP_REQUEST event, then on some basis, i.e. HTTP:host select either pool x or pool y. you make the selection with the pool command.

     

    that is basically it.