Session affinity is configured with the load balancer. It ensures that all requests from a user are handled by the same Pega Platform server. Session affinity is required in the load balancer for both slow drain and immediate drain quiesce. Immediate drain is the default quiesce method. Pega Platform settings related to cookie invalidation are applicable only for slow drain.
Production load balancers offer a range of options for configuring session affinity. Pega Platform supports cookie-based affinity for slow drain quiesce. Configure cookies for high availability session affinity for slow drain quiesce by using the following settings.
- Value –
configurable-cookie-invalidatoror fully qualified class name of a class implementing the
- Functionality – Class name of the invalidation method in use
- Set to
configurable-cookie-invalidatorto perform cookie-based invalidation using the value of
session/ha/quiesce/cookieToInvalidateas the name of the cookie to invalidate
- Set to the fully qualified name of a class implementing the interface
- Set to
- Value – Name of the cookie to invalidate
- Functionality – Name of the cookie to invalidate when using the configurable-cookie-invalidator customSessionInvalidationMethod