Performance test is automated with JMeter. A great tutorial can be found at Guru99 if you are not familiar with JMeter.
To run performance test, execute the following JMeter command
jmeter -n -t saga.jmx -l log.jtl
To generate test report from JMeter test log, run the following JMeter command
jmeter -g log.jtl -o <report folder>
Kamon is used to track saga performance and reports trace data to both log and StatsD. The easiest way to visualize tracing reports is to use a docker image composed with StatsD, Graphite, and Grafana
perf
.mvn package -Pperf
localhost
and port 8125
. To change the default StatsD host configuration, pass -Dkamon.statsd.hostname=<hostname>
and -Dkamon.statsd.port=<port>
as vm options when running saga.java -javaagent:/path/to/aspectj-weaver.jar -Dkamon.modules.kamon-annotation.auto-start=yes -Dkamon.modules.kamon-log-reporter.auto-start=yes -Dkamon.modules.kamon-statsd.auto-start=yes -jar saga.jar
Three test machines to run the following services on each:
The car service and saga can share the same machine, since car service consumes very little CPU and memory, and has no disk access.