KitKarson
KitKarson

Reputation: 5637

JMeter - load balancing

In our application, We have 6 instance of application server.

When we test it manually, we will land on some node randomly. When i run our JMeter test (with 20 users), most of the load(70%) goes to 1 specific node out of 6 nodes. 30% goes to another specific node from the rest 5.

I see the information via JSESSIONID set in the request cookies.

Issue:

I was thinking the load will be balanced on all the 6 nodes equally (more or less). Is this my application issue? Or Does it have to do anything with JMeter?

Note:

Upvotes: 0

Views: 5474

Answers (2)

sbos61
sbos61

Reputation: 564

Beside what Dmitri suggested you should check the way your LB is configured.

In many cases, the LB distributes the requests based on source IP, so all requests coming form the Jmeter server go to the same target. This happens especially when the LB does not terminate the https traffic.

Upvotes: 2

Dmitri T
Dmitri T

Reputation: 167992

First of all make sure that HTTP Cookie Manager is added to your test plan, it should be enough to automatically resolve cookie-based load balancing problem.

If you have > 1 load balancer instance or the load balancer resolves in > 1 IP address you may have to add a DNS Cache Manager as well. See The DNS Cache Manager: The Right Way To Test Load Balanced Apps guide for better explanation and configuration details.

Upvotes: 2

Related Questions