java - Session not found in other server when running test script on jmeter -
i running test script on jmeter. design of system i'm testing multi-profile. meaning, login using http server, redirected either server1 or server2 (randomly). on test script recorded, redirected server2. whenever run pre-recorded test script again (with 100 users/threads), requests redirected server2 processed , requests redirected server1 returning 'user session not found' error. how fix this?
i have http cache , http cookie manager in test plan before http samplers.
it seems bad configuration of 2 servers not sharing session data. normally, servers share session related information such cookies client can response either of servers.
i not sure whether can control server hit (though hit second server during recording, because load balancer has chosen server @ point in time), load balancer decision (based on algorithms used, least response times, client ip-based etc)
i suggest check server configurations whether sharing cookie level data or not. also, suggest check algorithm being used load balancer distribute load across 2 servers.
if not causing issues, @ how cookies sent server , how the(jmeter) client resending them (by http cookie manager) i.e., check whether cookies sent jmeter expected server(s). possible partial cookies being sent.
please answer following questions:
- is request sent server2 when 1 thread used?
- whether request getting succeeded when requests hit server1 single thread?
- are hitting load balancer url (which inturn decides server hit)? or hardcoded 1 of server address?
Comments
Post a Comment