Forum Discussion
IRule for pool member priority
hi all,
i have this issue with two pool members that one of the is the master and the other one is backup member.
the issue occur when the first one go down the backup become active and everything is working fiine, when the first one become active the BIG-IP doesn't close the connections to the backup.
is it possible to do by irule to close the connection as soon as the primary is active and the backup will go back to the old status.
Regards,
8 Replies
- Arie
Altostratus
By default the LTM will gracefully handle existing connections so the user isn't affected. Is there a compelling reason to kick everyone off the backup server when the primary comes back online?
- What_Lies_Bene1
Cirrostratus
You could use an iRule but can I suggest you apply a OneConnect profile first? It should 'move' the connections more quickly although whether it's quick enough for you is another question. - bezeqint
Nimbostratus
hi,
the issue is that the client open one connection and send the data only on one connection, so as soon as the primary pool member is going down the connection move to the backup server but as the primary server is coming up the connection remain on the backup sver, that causing problems with databases. - What_Lies_Bene1
Cirrostratus
OK, understood. So, are you using persistence at all? - nitass
Employee
what if you delete existing connection (using bigpipe or tmsh) to backup server when primary server is up.
Acton on Log - using the alertd deamon
https://devcentral.f5.com/wiki/advdesignconfig.Acton-on-Log-using-the-alertd-deamon.ashx - bezeqint
Nimbostratus
that exactly what i would like to do.
but is it possible to do this automatically?
i don't want to do this manually, i heard that there is script that can handle this but i didn't understand the script at all. - Arie
Altostratus
It sounds like the app wasn't developed with redundancy in mind. Any chance the developers could fix this? Or are you limited to using the LTM to work around the problem?
- nitass
Employee
that exactly what i would like to do.
but is it possible to do this automatically?
i don't want to do this manually, i heard that there is script that can handle this but i didn't understand the script at all.e.g.[root@ve10:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.252:23 ip protocol 6 } [root@ve10:Active] config b pool foo list pool foo { min active members 1 monitor all tcp members { 200.200.200.101:23 { priority 10 } 200.200.200.111:23 { priority 5 } } } [root@ve10:Active] config cat /config/user_alert.conf alert BEZEQINT_TEST "Pool member 200.200.200.101:23 monitor status up." { exec command="export REMOTEUSER=root;/usr/bin/tmsh delete sys connection ss-server-addr 200.200.200.111" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com