Repository navigation
Pace rate-limited steps from their first operation - #222
Merged
Merged
Conversation
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.
Summary
With
load.op.limit.rateset, every rate-limited run started with a burst. The java-commonsRateThrottlethat the linear, pipeline and weighted load steps used granted its whole first request at once. The generator's first request is a whole batch (load.batch.size, default 32768 operations), so each node sent up to one extra batch at full speed before pacing began. The throttle's next call then reset its counter, so the burst was never paid back.A short or slow-object run therefore reported a rate well above its limit. On a three-worker test lab, a 60 s run of 10 KiB writes limited to 8,000 ops/s completed about 20,000 ops/s for its first 4–5 seconds, and averaged 9,562 ops/s (+19.5%).
Each node now paces from its first operation, so the measured rate matches the limit from the start. The limit's meaning is unchanged: operations per second for the step, divided evenly among its nodes.
Changes
PacedRateThrottle(spt-base,load.generator) implements the java-commonsThrottleinterface:RateThrottle. A step without a rate limit constructs no throttle.LoadGeneratorImplis unchanged, apart from a comment. It keeps its clamp of negative counts for otherThrottleimplementations.Not changed
load.op.limit.rate, as before.