Repository navigation
[docs](file-cache) Document file cache enabled by default since 4.2 - #4202
Merged
Merged
Conversation
The block file cache is enabled by default since Doris 4.2: both the BE config enable_file_cache and the session variable enable_file_cache default to true (apache/doris#66684, apache/doris#68797). - Update the documented default of the BE config and the session variable. - Clarify that an external file scan reads through the cache only when the BE config, the session variable, and cache admission control are all enabled. - Add caveats: the default cache path ${DORIS_HOME}/file_cache may grow until the disk is 85%-88% full; BE configs are not persisted while session variables are, so a cluster upgraded from an older version needs SET GLOBAL enable_file_cache = true to cache external tables. - Applied to dev and 4.x docs, English and Chinese.
Contributor
Author
|
run buildall |
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What problem does this PR solve?
Apache Doris enables the block file cache by default since 4.2: both the BE config
enable_file_cacheand the session variableenable_file_cachedefault totrue(apache/doris#66684, apache/doris#68797). The docs still described the old behavior (falsefor non-cloud mode, and "disabled by default" for Data Cache).What is changed?
enable_file_cachedefault updated fromfalsetotruein the BE config reference, the Data Cache page, and the compute-storage-decoupled File Cache page.${DORIS_HOME}/file_cachemay grow until the disk is 85%–88% full (bound it withtotal_size, or setenable_file_cache = falseto keep the old behavior); BE configs are not persisted while session variables are persisted in the FE image, so a cluster upgraded from an older version keeps its previous value and needsSET GLOBAL enable_file_cache = trueto cache external tables.docs/(dev) andversioned_docs/version-4.x/, English and Chinese.Versions
Languages
Docs Checklist