Skip to content

Commit

Permalink
Document to set body-related options with consumer-only instance
Browse files Browse the repository at this point in the history
Otherwise latency calculation is wrong.
  • Loading branch information
acogoluegnes committed Dec 21, 2023
1 parent e2aadc1 commit 28a91dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/docs/asciidoc/usage-advanced.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ the content-type can be specified:
java -jar perf-test.jar --consumers 0 \
--body content1.json,content2.json --body-content-type application/json

NOTE: Make sure to also set `--body` in a consumer-only PerfTest instance if it consumes messages published with it.
This is to tell PerfTest how to extract the message timestamp to calculate latency.

=== Random JSON Payload

PerfTest can generate random JSON payload for messages. This is useful to
Expand Down Expand Up @@ -117,6 +120,10 @@ Bear in mind that a large cache of generated payloads combined with a moderately
can easily take up a significant amount of memory. As an example, `--json-body --body-count 50000 --size 100000`
(50,000 payloads of 100 kB) will use about 5 GB of memory.

NOTE: Make sure to also set `--json-body` in a consumer-only PerfTest instance if it consumes messages published with it.
This is to tell PerfTest how to extract the message timestamp to calculate latency.


== Limiting and varying publishing rate

By default, PerfTest publishes as fast as possible.
Expand Down

0 comments on commit 28a91dd

Please sign in to comment.