Skip to content
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

Throttle session creation in nwo.Network #1111

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

sykesm
Copy link
Contributor

@sykesm sykesm commented Apr 16, 2020

There are many places in the integration tests where the network will repeatedly poll for some condition using Fabric command line tools in an Eventually. When this pattern is used, the commands are executed every 10ms until until the polling expires or the condition is
satisfied. While this works, the polling does not have to be run as frequently.

This change introduces a SessionCreateInterval field to the network that can be used to influence how quickly the same command can be re-issued. The default value of 1s will reduce the frequency of CLI execution when used in an Eventually loop without impacting the polling on sessions or other activities.

@sykesm sykesm requested a review from a team as a code owner April 16, 2020 21:03
There are many places in the integration tests where the network will
repeatedly poll for some condition using Fabric command line tools
in an `Eventually`. When this pattern is used, the commands are executed
every 10ms until until the polling expires or the condition is
satisfied. While this works, the polling does not have to be run as
frequently.

This change introduces a `SessionCreateInterval` field to the network
that can be used to influence how quickly the same command can be
re-issued. The default value of 1s will reduce the frequency of CLI
execution when used in an Eventually loop without impacting the polling
on sessions or other activities.

Signed-off-by: Matthew Sykes <matthew.sykes@gmail.com>
@yacovm yacovm merged commit 6cdbca8 into hyperledger:master Apr 16, 2020
@sykesm sykesm deleted the session-interval branch February 20, 2021 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants