Showing results for 
Search instead for 
Did you mean: 

HowTo: Controlling Session Persistence

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


Version history
Revision #:
1 of 1
Last update:
‎02-24-2013 06:40:AM
Updated by:
Labels (1)