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.
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
[Breaking flag] fix(Backups): new badger SuperFlag, NumGoroutines option solves OOM crashes #7387
[Breaking flag] fix(Backups): new badger SuperFlag, NumGoroutines option solves OOM crashes #7387
Changes from 14 commits
5fc028c
a67a42a
882d419
aad0b89
db44654
9c0316d
a5e2055
47ca2a9
680d5ab
4fed91c
3e5b59e
3b65a2e
7608034
1d65d59
0793c50
cab8caf
3e7281e
98fd4d4
a574c09
d906008
cddfc9a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this
goroutines
flag in Alpha for creating local threads during backups, and Badger uses thegoroutines
value as the defaultStream.numGo
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this
compression
flag in Alpha for setting the compression type of Badger.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this
compression
flag in Bulk for setting the compression type of Badger (similar to how Alpha uses it).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this
cache_mb
flag in Bulk for setting the Badger cache size. The default value is set inworker/server_state.go
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this
cache_percentage
flag in Bulk for setting the BlockCacheSize and IndexCacheSize.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these defaults aren't used by Alpha, which is kind of confusing...
We use
goroutines
andcompression
in Alpha.We use
compression
,cache_mb
, andcache_percentage
in Bulk.It doesn't make sense to split up the
BadgerDefaults
across packages, but it might be worth adding a comment explaining which packages use which options.