You could change LB strategy to make same client IP always route to the same server.
http://en.wikipedia.org/wiki/Load_balancing_(computing)#Persistence 2012/9/4 Nirodha Pramod <[email protected]> > Hi, > > I have a scenario to test a web server, where there are 2 web servers > fronted with a load balancer. My web service has several inter connected > operations. > In my thread group I have 2 samplers where one request do a http post and > set a value (in memory), > and another sampler to send a http get and read that value. > > Since this service is deployed in 2 servers fronted with a LB, when the > test is run first sampler request is redirected to the first server and the > get request is redirected to the second server by the load balancer. So > obviously the test fails because the value Im trying to get is not there > (It is set on the first server). > > How can I solve this issue. I want all the samplers run by a particular > thread to be sent to the same session of particular server. > > Hope you understand my issue. Thanks in advance. > > > -- > *Nirodha Gallage* > Software Engineer, QA. > WSO2 Inc.: http://wso2.com/ > Email: [email protected] Mobile: +94716429078 >
