Hello,
I try some Gatling simulation against one of my service.
Using a feed TSV file ( photo_queries.tsv ) containing 26 query strings as ${query}
Looks like :
query
/servlet/photo?memberId=00219l2onef1bire&height=35&width=26&ts=1348109861000
/servlet/photo?memberId=0021nwp1f2a9jd4z&height=35&width=26&ts=1339603511000
/servlet/photo?memberId=0021lpsbgdg9nzg&height=60&width=45&ts=1337034533000
[…]
Here is my Simulation scala code :
package photo
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import akka.util.duration._
import bootstrap._
class SimulationPhotoLoad extends Simulation {
def apply = {
val photoQueries = tsv(“photo_queries.tsv”).circular
val urlBase = “http://10.40.0.2/”
val httpConf = httpConfig.baseURL(urlBase).hostHeader(“static”)
val scn = scenario(“My scenario”)
.during(1 minutes) {
feed(photoQueries)
.exec(
http(“Photos”)
.get("${query}")
)
.pause(0 milliseconds, 100 milliseconds)
}
List(scn.configure.users(10).protocolConfig(httpConf))
}
}
The report ends with 260 hits (26 * 10) almost reached in the first 10 seconds and waiting for other 110 seconds doing nothing.
change circular by random does nothing for that.
I excepted that queries were hit again and again during the 2 minutes of the tests resulting on much more hits on the plateform.
What is wrong with my code ?
Thank you for your kind answer.
Cheers,