-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(flags): [Breaking] Add cache superflag for alpha #7652
Conversation
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.
Looks good. Can you please verify if admin/config/cache_mb
on alpha still works the same. It should work fine but should be good to confirm.
dgraph/cmd/alpha/run.go
Outdated
"Total size of cache (in MB) to be used in Dgraph."). | ||
Flag("percentage", | ||
"Cache percentages summing up to 100 for various caches (FORMAT: PostingListCache,"+ | ||
"PstoreBlockCache,PstoreIndexCache,WAL)"). |
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.
This needs to be changed. The pstoreblock cache and pstore index cache values are being fetched from the badger super flag. We don't need them over here.
Also, the wal is no longer supported.
@NamanJain8
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.
Removed the wal cache from flag. Also, we decided to keep the cache as it is.
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.
Let's use Badger SuperFlag correctly in Dgraph.
Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @martinmr, @NamanJain8, @pawanrawal, @rohanprasad, and @vvbalaji-dgraph)
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.
@manishrjain I will create a separate PR for badger flag changes.
Reviewable status: 0 of 6 files reviewed, 2 unresolved discussions (waiting on @martinmr, @NamanJain8, @pawanrawal, @rohanprasad, and @vvbalaji-dgraph)
This change introduces cache as a superflag, with size-mb and percentage as subflags for dgraph alphas.
This change introduces cache as a superflag, with size-mb and percentage as subflags for dgraph alphas.
Fixes DGRAPH-3212
This change is