cancel
Showing results for 
Search instead for 
Did you mean: 

Save the current connection

WishTitan
Visitor

Save the current connection

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.

1 REPLY 1
zanyterp
Moderator

Re: Save the current connection

can you confirm what product this is for? this does not look to be for a PCS or PPS but rather the ADC product line. I am going to move this to that area; if I guessed wrong, please reply and I will update as-needed