Single Node Persistence
Problem this snippet solves: A really slick & reliable way to stick to one and only one server in a pool.
Requirement: Direct traffic to only a single node in a pool at a time. Initially, traffic ...
Published Mar 18, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
mderanek_60004
Aug 24, 2018Nimbostratus
We having been using this for years with no problems. It's based on the VS name. Using uie 1 is not a good idea. Specially if you are using the irule for multiple VSs.
We create a universal persistence profile that calls the irule instead of assigning the irule to the virtual server.
when CLIENT_ACCEPTED { persist uie [virtual name] }