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
Dec 17, 2018
Hi k20, destination address affinity does not care about your client. The only thing of interest is the destination IP your clients are targeting. And this will be the IP address of your virtual server. Whenever a client is establishing a connection the virtual will establish a persistence table entry containing the virtual servers IP as key and pool member as value. With a new incoming connection (within the persistence timeout) it will lookup the table. The key is the virtual´s IP address and the value exact the same pool member. And this results in selecting the same pool member for all clients. Cheers, Stephan