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

feat(options): add NumGoroutines option for default Stream.numGo #1656

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

karlmcguire
Copy link
Contributor

@karlmcguire karlmcguire commented Feb 2, 2021

(This relates to DGRAPH-2953 and hypermodeinc/dgraph#7387 because the best way to slow down backups rather than crash, is to set these goroutine flags.)

The WithNumGoroutines(n int) function sets the NumGoroutines option which is used as the default value of Stream.numGo. The default value of 8 for Stream.numGo stays the same, except now it's hardcoded under the default NumGoroutines option.


This change is Reviewable

@karlmcguire karlmcguire added the area/tools Issues related to maintenance tools and CLI. label Feb 2, 2021
@CLAassistant
Copy link

CLAassistant commented Feb 2, 2021

CLA assistant check
All committers have signed the CLA.

@karlmcguire karlmcguire merged commit cf66e6f into master Feb 3, 2021
@karlmcguire karlmcguire deleted the karl/flag branch February 5, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tools Issues related to maintenance tools and CLI.
Development

Successfully merging this pull request may close these issues.

3 participants