How to add sticky to Gatling client based load balancing

190 views
Skip to first unread message

Peter Heath

unread,
Sep 19, 2018, 7:17:14 PM9/19/18
to Gatling User Group
Hello
I'm using Gatling feature "Load testing several servers with client based load balancing" at https://gatling.io/docs/2.3/http/http_protocol/ to test an application against a cluster of servers. The application has several requests for one user, the first request got a token from one server node, and the second request uses the token from the first request as part of the request. I'm seeing the second request failed with a 400 and suspecting the two requests were sent to different server nodes and caused the failure. Is there a way to enforce the requests for the same user go to the same server node for this client based load balancing feature? Something like sticky in Nginx load balancer.
Thanks!

slan...@gatling.io

unread,
Sep 20, 2018, 12:39:36 AM9/20/18
to gat...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Heath

unread,
Sep 20, 2018, 12:55:12 PM9/20/18
to Gatling User Group
It's wonderful! Thanks!  Stephane. I need to make our Gatling libs to be 3.0.0 compatible, so not fully succeed yet.
One feedback, on 2.3.1, there is a data folder under user-files, but the data folder is not there in 3.0.0-RC1, it would be better to be there for compatibility reason. 

Stéphane LANDELLE

unread,
Sep 20, 2018, 1:37:32 PM9/20/18
to gat...@googlegroups.com
One feedback, on 2.3.1, there is a data folder under user-files, but the data folder is not there in 3.0.0-RC1, it would be better to be there for compatibility reason. 

This change is fully intended and Gatling 3 is a new major version as we do introduce such breaking changes.

Stéphane Landelle
GatlingCorp CEO
Reply all
Reply to author
Forward
0 new messages