Repository navigation
pulsar-perf reports throughput and latency every 10 seconds, as Java's does - #53
Merged
Merged
Conversation
…s does `pulsar-perf produce` and `pulsar-perf consume` print a line every 10 seconds, in Java's format: the messages so far, the msg/s and Mbit/s since the last report, and the latency percentiles of an HdrHistogram of that interval, reset after each report. The producer's latency is the send's, past the warm-up; the consumer's runs from the publish time, in whole milliseconds. The reports come from a thread of their own, as Java's main thread prints them: a timer on the runtime cost the consume loop about 6% of its throughput. All output now goes through `tracing`, at INFO unless `RUST_LOG` says otherwise, with the client's own logs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pulsar-perf produceandpulsar-perf consumeprint only theirAggregatedlines at the end of a run. Java'spulsar-perfalso prints a line every 10 seconds, so a run's progress, stalls and latency drift show while it goes. This adds those lines, in Java's format:Aggregatedlines still come from the run's own histogram.failureis always0.0: a failed send ends the run.tracing, at INFO unlessRUST_LOGsays otherwise, with the client's own logs, as Java'spulsar-perfshows the Java client's.baseline.shstill finds theAggregatedlines behind the prefix.Still different from Java's: the producer's
Aggregated latencyline has no99.999pct, and the consumer has noAggregated latencyline norAckRate.Testing
Unit tests cover both lines and the intervals, an empty one included. Against a 5.0.1 standalone: produce at full rate and at 1000 msg/s, consume from a backlog and from an empty topic, each on the thread-safe and the local client, and a bad service URL. Consume throughput over three alternating runs on a fresh broker: 71.0k msg/s before, 71.1k after.