|
7 năm trước cách đây | |
---|---|---|
.. | ||
src | b8bf480742 Clients: Switch to new performRequest (#30543) | 7 năm trước cách đây |
README.md | 7b81c4ca59 Add client-benchmark-noop-api-plugin to stress clients even more in benchmarks (#20103) | 9 năm trước cách đây |
build.gradle | 8085ec504b Upgrade Gradle Shadow plugin to 2.0.2 | 7 năm trước cách đây |
client-benchmark-noop-api-plugin
with gradle :client:client-benchmark-noop-api-plugin:assemble
bin/elasticsearch-plugin install file:///full/path/to/client-benchmark-noop-api-plugin.zip
gradle :client:benchmark:shadowJar
and execute it.Repeat all steps above for the other benchmark candidate.
In general, you should define a few GC-related settings -Xms8192M -Xmx8192M -XX:+UseConcMarkSweepGC -verbose:gc -XX:+PrintGCDetails
and keep an eye on GC activity. You can also define -XX:+PrintCompilation
to see JIT activity.
Download benchmark data from http://benchmarks.elastic.co/corpora/geonames/documents.json.bz2 and decompress them.
Example command line parameters:
rest bulk 192.168.2.2 ./documents.json geonames type 8647880 5000
The parameters are in order:
Example command line parameters:
rest search 192.168.2.2 geonames "{ \"query\": { \"match_phrase\": { \"name\": \"Sankt Georgen\" } } }\"" 500,1000,1100,1200
The parameters are in order:
TransportClientBenchmark
uses QueryBuilders.wrapperQuery()
internally which automatically adds a root key query
, so it must not be present in the command line parameter.