-
Notifications
You must be signed in to change notification settings - Fork 11
Load testing #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Load testing #87
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.
Adds Load Testing for:
Implementation (using a signing request test as an example):
Once load testing completes a histogram is created and saved, displaying:
The number of concurrent operations the system can handle is dependent on the timeout allowed for each operation. The longer the timeout, the more concurrent requests can be successfully handled. The load testing process above is run for each of a number of different timeouts for each operation, and generates a histogram for each timeout. The default timeouts, as of now, are 10ms, 100ms, and 1s. (So, for each of the 5 operation types, 3 timeouts are run, generating 3 histograms, for a total of 15 histograms.)
A signatory, verifier, and web server must be run during testing to support the full range of load test types.
No-Op
Support for no-operation requests is added to the local signatory implementation. No-Op requests can be trigger by sending a signature request with the string "dryrun" in place of the url.
Retries
Retries are run on the first group of 10 batches (containing 2 requests per batch) to account for the expected initial failures caused by a lack of a dns record. If a failure percent below 50% is observed in this first group, the group is rerun, up to a max of 20 retries. Retries of this group are inexpensive, as each batch contains only 2 requests. All other groups are run only once.