mercredi 3 février 2021

Automate Gattling Tests scenarios

I have a Druid Setup in Kubernetes. To test the performance of queries, I created a local Gattling setup and configured queries to test the load and stress of the system. But we are still in the process of evaluating and tuning Druid. So we need to run these tests every time we make a config change, to ensure that the property really helps and for documentation purposes.

val httpConf = http.baseUrl("http://localhost:8082/druid/")
    .header("Content-Type", "application/json")
    .proxy(Proxy("localhost", 8082))

 val scn = scenario("Druid_Feldspar_Query_Perf_Test_approx_distinct_without_filter")
   .exec(http("complex_join_round_filter")
   .post("v2/sql").body(RawFileBody("count_query")))

setUp(
    scn.inject(constantUsersPerSec(50) during(60.second))
  ).protocols(httpConf)

Right now all the Gattling steps are manual, as shown above. I get an HTML file after each run that I parse to get the numbers. Has anybody done something that can automate this process? Can we deploy in Kubernetes?

Any help or pointers are helpful? Please let me know if any further inputs are needed.

Aucun commentaire:

Enregistrer un commentaire