Create a list of possible badger tweaks/restrictions/problems #555
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#555
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This must be done taking the whole system into account (some problems are OK because we have sharding, we have a limited number of in-flight put requests etc.).
So far the only ones I'm aware of:
So we need to check
writecache.capacity
and tweak parameters based on it's value?Yes. Although even if we can compute the max size, we shouldn't create such large cache capacity (~1TB is the approx. max size for the default parameters) since it wouldn't work that well anyway.
PR #833 contains configuration with some explanations.
Main config options:
SyncWrites - be default False, but this may lead to data lost, so need to set True.
IndexCacheSize - stores bloom filters, by defualt all indicies are stored in memory, but it's better to limit it with some value.
NumMemtables - max number of MemTables in memory before stall => possible stalling cause.
NumLevelZeroTablesStall - another possible stalling cause.
ValueThreshold and VLogPercentile - these parameters determine where the value will be stored: LSM tree or vLog.
NumCompactors - compact workers count.
See https://github.com/dgraph-io/badger/blob/v20.07.0/options.go for full config list.