For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

jan_de_wachter_'s avatar
jan_de_wachter_
Icon for Nimbostratus rankNimbostratus
Feb 24, 2014

LTM - irule : how can we set mirrot persistence in an irule

I am a real novice in F5. Until now we alway worked with ACE.

We should switch pool and sticky definitions depending on the HOST name:

when CLIENT_ACCEPTED { Save the name of the VS default pool set default_pool [LB::server pool] } when HTTP_REQUEST {

switch -exact "[string tolower [HTTP::host]]" {
    "acc-search.infrabel.be"           { pool /Common/a1185-acc-search.app/a1185-acc-search_pool 
                                         persist none }
    "acc-mediaservice.infrabel.be"     { pool /Common/a1185-acc-mediaservice  
                                         persist source_addr 255.255.255.255 180 }
    "acc-my.infrabel.be"               { pool /Common/a1185-acc-my  
                                         persist none}
    "acc-officeweb.infrabel.be"        { pool /Common/a1185-acc-officeweb 
                                         persist source_addr 255.255.255.255 180 }
    default                            { pool $default_pool }
}

}

We would not also set mirror persistence . The backup LB should take over sticky definitions whwhen needed.

How can we do this?

I can create a new (own) persistence profile with all in it. But how can we activate it in a our irule (using the GUY)

Thanks

No RepliesBe the first to reply