-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[improvement](be) Add disk cache for external file metadata #63376
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
base: master
Are you sure you want to change the base?
Changes from all commits
9cfa41e
283f940
c093642
9b946bc
72e490b
48d7b10
677f3a2
41062d6
3f982d5
a55bd3e
6cfbea9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1213,6 +1213,8 @@ DEFINE_Bool(enable_file_cache, "false"); | |
| // Both will use the directory "memory" on the disk instead of the real RAM. | ||
| DEFINE_String(file_cache_path, "[{\"path\":\"${DORIS_HOME}/file_cache\"}]"); | ||
| DEFINE_Int64(file_cache_each_block_size, "1048576"); // 1MB | ||
| DEFINE_Bool(enable_external_file_meta_disk_cache, "true"); | ||
| DEFINE_mInt64(external_file_meta_disk_cache_max_entry_bytes, "67108864"); // 64MB | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| DEFINE_Bool(clear_file_cache, "false"); | ||
| DEFINE_mBool(enable_file_cache_query_limit, "false"); | ||
|
|
||
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 compiled default is
true, but the newly addedconf/be.confexample documents# enable_external_file_meta_disk_cache = false, and the PR description frames the behavior as applying when the flag is enabled. BecauseExecEnv::init_file_cache_factory()now initializesFileCacheFactorywhenever this flag is true, a default BE withenable_file_cache=falsewill still create/usefile_cache_pathfor persisted external footers. Please align the compiled default with the documented opt-in behavior, or update the config sample/release note/tests to make the default-on disk usage explicit.