val httpConf = http
.baseURL("http://IP:9200")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.doNotTrackHeader("1")
.acceptLanguageHeader("en-US,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0")
.shareConnections
pre-tunning: https://github.com/gatling/gatling/blob/master/src/sphinx/general/operations.rst
.shareConnections does the magic! https://groups.google.com/forum/#!topic/gatling/rRpv8LPa51I
I know my comment is 2 years late,
Just as mentioned in the google group, the "shareConnections" parameter can falsify your tests, it means that you are testing a server to server connection, not client to server connections, so be careful while using it