Can we benchmark server with NGINX and Gatling

141 views
Skip to first unread message

ashutosh gangwar

unread,
May 9, 2018, 8:55:59 AM5/9/18
to Gatling User Group
Can we benchmark local server with help of NGINX server and gatling.
scenario: NGINX running on local machine and I want to know how many HTTPS requests (transactions per second) the machine can perform.

Any help will be appreciated.

Håkan

unread,
May 14, 2018, 3:44:07 AM5/14/18
to Gatling User Group
Yes, but generating the load using the same computer that hosts the system under test (your nginx) is seldom a good idea.

ashutosh gangwar

unread,
May 14, 2018, 4:13:14 AM5/14/18
to gat...@googlegroups.com
Hi Hakan,
Thanks for your reply.
As of now I just want to understand the integration part of Gatling with NGINX, so that I can see the GUI graphs.
I used to use ab client which gives me the numbers of HTTPS transactions, but gives digits.
I want to see how it scales in course of time in graphs.

any help how to config the gatling.conf so that it use 127.0.0.1:443 (on which NGINX is running) will be appreciated.


--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
Ashutosh Gangwar

Håkan

unread,
May 14, 2018, 4:30:25 AM5/14/18
to Gatling User Group
To a large extent, the HTML and JSON reports from Gatling provide the same type of values you'd get from Apache Bench, i.e response time percentiles compared to load.

The Gatling reports are generated after the simulation has completed. The JSON is quite terse while the HTML report will produce all sorts of interactive graphs by default, no configuration needed.

If you want to have pretty graphs in real-time it is possible (and very straight forward) to hook Gatling up to InfluxDB and Grafana. See https://gatling.io/docs/current/realtime_monitoring/


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.



--
Regards
Ashutosh Gangwar

ashutosh gangwar

unread,
May 14, 2018, 5:04:42 AM5/14/18
to gat...@googlegroups.com
>> The Gatling reports are generated after the simulation has completed.
Considering this is the requirement. Ho can we use gatling to send HTTPS traffic to NGINX in order to see the HTTPS transactions after the simulation.
I cant figure it out.

To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards
Ashutosh Gangwar

Håkan

unread,
May 15, 2018, 3:40:20 AM5/15/18
to Gatling User Group
Sorry, I missed the part about gatling.conf.

Gatling is not Apache Bench. Gatling doesn't really generate random requests, you need to define the requests you want to make. The documentation is pretty clear on this, and the examples are pretty good.

In the Scenario definition you have the request defined. You do not need to specify a baseURL in the httpProtocol configuration part, you can use something like this instead:

.exec(http("https_request").get("https://127.0.0.1:443"))

In the setUp part of the example script you define the load.

Read the docs, find some basic examples (did BBC's Gatling repo go private?) and best of luck.
Reply all
Reply to author
Forward
0 new messages