This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Reload cache factors from disk on SIGHUP #12673
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d942823
Fix minor typos in cache config docstring
077ce90
Add drive-by annotations in s.config._base
1f668be
Define `RootConfig.reload_config_section`
2a5ce2f
Move `format_config_error` to s.config._base
69da4ca
Reload cache config on sighup
85f4385
Changelog
1febfd6
If `global_factor` is omitted, use 0.5 on reload
4039b2d
Annotate CacheConfig's instance vars at the top
b7a6ec5
Separate reading and applying cache config
519f98b
Remove redundant assert
b9595ad
Create a new config object when reloading
1118b9f
Fix tests oops
f6e1394
Document the ability to reload cache config
55963ac
Master process needs to apply cache config too.
f199d82
Update TRACK_MEMORY_USAGE on cache config reload
412414d
Overly comprehensive docstring
a7418c0
Don't update TRACK_MEMORY_USAGE; update docs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Hmm, so this is safe to update to
False
, but I'm not 100% sure its safe to update this toTrue
. At the very least the metrics will be wrong for a while, as we won't track memory usage for anything that is already in the cache.Happy for us to do one of:
False
True
and add a big comment about the fact it will underestimate the cache size for a whileThere 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.
I'll go for option 1 and update the docstring.
I'll also update the docs to only say that SIGHUP reloads cache factors.
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.
Fair!
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.
One more look over please?