Dear Team,
I have faced with the problem and don't know how to solve it. I'm trying to write script for rule which switch to the specific node in case
if in the POST method present spicific parametr for example Description.
I have a pool which consist for 3 nodes which is active.
Pool:
1) node1.com:22
2) node2.com:22
2) node3.com:22
There is the script:
$desc = http.getFormParam( "Desc" );
if( string.cmp($desc, "Test") == 0 ) {
request.avoidNode( "node1.com:22" );
request.avoidNode( "node2.com:22" );
connection.setPersistenceNode( "node3.com:22" );
} else{
request.avoidNode( "node3.com:22" );
request.avoidNode( "node2.com:22" );
connection.setPersistenceNode( "node1.com:22" );
}
This rule works fine first time, and i'm routing to node3.com:22 webpage, but if i do some action there i will rout to node1.com:22.
How to save the session for node3.com:22?
I understand the problem in my script, but i dont know how to fix it.