vADC Docs

HowTo: Controlling Session Persistence

by on ‎02-24-2013 06:40 AM - edited on ‎06-11-2015 12:16 PM by PaulWallace (28,140 Views)

Session persistence ties the requests from one client (ie, in one 'session') to the same back-end server node. It defeats the intelligence of the load-balancing algorithm, which tries to select the fastest, most available node for each request.


In a web session, often it's only necessary to tie some requests to the same server node. For example, you may want to tie requests that begin "/servlet" to a server node, but let Stingray be free to load-balance all other requests (images, static content) as appropriate.


Configure a session persistence class with the desired configuration for your /servlet requests, then use the following request rule:


if( string.startswith( http.getPath(), "/servlet" ) ) {  
  connection.setPersistenceClass( "servlet persistence" );  


Read more