import io.gatling.core.Predef._import io.gatling.core.check.CheckResultimport io.gatling.core.scenario.Simulationimport io.gatling.core.validation.Failureimport io.gatling.udp.Predef._import io.gatling.udp.UdpMessageimport org.jboss.netty.handler.codec.string.{StringDecoder, StringEncoder}import io.gatling.http.Predef._import scala.concurrent.duration._import load.utils.BearerTokenGenerator
import scala.util.Random
class ZettaLoadTest extends Simulation{
val Users = 10
val widthFeeder = Seq(58188555, 1234).toArray.map(r => Map("widthValue" -> r)).random
val bidRequest1 = """{"device": {"dpidsha1": "dpid", "dnt": 1, "geo": {"country": "US"}}, "imp": [{"banner": {"h": 58188555, "api": [1], |"id": "1", "w": ${widthValue}}, "id": "1"}], "app": {"publisher": {"id": "agltb3B1Yi1pbmNyAEsBS0GjZ291bnQY9Iv5FAw"}, |"id": "agltb3B1Yi1pdmNyBAsSA0FwcBjRmvkVDB", "paid": 0}, "id": "country", "user": {"geo": {}, "id": "qwerty"}}""".stripMargin
val bidderBaseUrl = "http://biddder.base.url"
val httpConfig = http .baseURL(bidderBaseUrl) .acceptHeader("Content-type: application/x-www-form-urlencoded") .connection("keep-alive") .shareConnections
val scn = scenario("Zetta Load Test") .feed(widthFeeder) .repeat(2000) { exec( http("zetta http post") .post("/rtb23/nexage/bid") .body(StringBody(bidRequest1)) .asJSON .check(status.in(200, 204)) ) }
setUp( scn.inject( atOnceUsers(Users) ).protocols(httpConfig) )}bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.76' | wc -l199
tcp 0 0 10.3.1.121:8090 10.3.0.76:42546 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:42551 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:42477 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:42485 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:42612 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:42577 TIME_WAIT -bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.76'tcp 0 0 10.3.1.121:8090 10.3.0.76:51733 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51729 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51716 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51727 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51725 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51735 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51723 TIME_WAIT -tcp 0 123 10.3.1.121:8090 10.3.0.76:51726 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51718 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51724 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51728 ESTABLISHED 25663/beam.smptcp 512 0 10.3.1.121:8090 10.3.0.76:51730 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51720 TIME_WAIT -tcp 516 0 10.3.1.121:8090 10.3.0.76:51732 ESTABLISHED 25663/beam.smptcp 516 0 10.3.1.121:8090 10.3.0.76:51734 ESTABLISHED 25663/beam.smptcp 0 0 10.3.1.121:8090 10.3.0.76:51719 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51717 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51721 TIME_WAIT -tcp 0 0 10.3.1.121:8090 10.3.0.76:51722 TIME_WAIT -tcp 512 0 10.3.1.121:8090 10.3.0.76:51731 ESTABLISHED 25663/beam.smp--
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.
I tried to describe my envo as much as possible in first post. Here is scenario code I currently working with + my gatling.conf attached. I've tried running load test from my macbook to eliminate possible AWS network "optimizations" but got same result. Please let me know if you need any additional info to reproduce
Enter code here...package zettaimport io.gatling.core.Predef._
import io.gatling.core.check.CheckResult
import io.gatling.core.scenario.Simulation
import io.gatling.core.validation.Failure
import io.gatling.udp.Predef._
import io.gatling.udp.UdpMessage
import org.jboss.netty.handler.codec.string.{StringDecoder, StringEncoder}
import io.gatling.http.Predef._
import scala.concurrent.duration._
import load.utils.BearerTokenGenerator
import scala.util.Random
class ZettaLoadTest extends Simulation{
val Users = 10
val widthFeeder = Seq(58188555, 1234).toArray.map(r => Map("widthValue" -> r)).random
val bidRequest1 =
"""{"device": {"dpidsha1": "dpid", "dnt": 1, "geo": {"country": "US"}}, "imp": [{"banner": {"h": 58188555, "api": [1],
|"id": "1", "w": ${widthValue}}, "id": "1"}], "app": {"publisher": {"id": "agltb3B1Yi1pbmNyAEsBS0GjZ291bnQY9Iv5FAw"},
|"id": "agltb3B1Yi1pdmNyBAsSA0FwcBjRmvkVDB", "paid": 0}, "id": "country", "user": {"geo": {}, "id": "qwerty"}}""".stripMargin
val bidderBaseUrl = "http://bid1.load.va.us.rtb2.strikead.com"
val httpConfig = http
.baseURL(bidderBaseUrl)
.acceptHeader("Content-type: application/x-www-form-urlencoded")
.connection("keep-alive")
.disableClientSharing
// .shareConnections
val scn = scenario("Zetta Load Test")
.feed(widthFeeder)
.repeat(20000)
bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.200' | wc -l41bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.200' | wc -l61bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.200' | wc -l81bid1:/home/alexandr.boiko # netstat -tulpan | grep '10.3.0.200' | wc -l101