diff --git a/config/datanode.example.toml b/config/datanode.example.toml index 2a1c97b16f08..d646fb93737b 100644 --- a/config/datanode.example.toml +++ b/config/datanode.example.toml @@ -105,8 +105,8 @@ global_write_buffer_reject_size = "2GB" sst_meta_cache_size = "128MB" # Cache size for vectors and arrow arrays (default 512MB). Setting it to 0 to disable the cache. vector_cache_size = "512MB" -# Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. -page_cache_size = "2GB" +# Cache size for pages of SST row groups (default 512MB). Setting it to 0 to disable the cache. +page_cache_size = "512MB" # Buffer size for SST writing. sst_write_buffer_size = "8MB" diff --git a/config/standalone.example.toml b/config/standalone.example.toml index e03014ca66db..b355896130d8 100644 --- a/config/standalone.example.toml +++ b/config/standalone.example.toml @@ -177,8 +177,8 @@ global_write_buffer_reject_size = "2GB" sst_meta_cache_size = "128MB" # Cache size for vectors and arrow arrays (default 512MB). Setting it to 0 to disable the cache. vector_cache_size = "512MB" -# Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. -page_cache_size = "2GB" +# Cache size for pages of SST row groups (default 512MB). Setting it to 0 to disable the cache. +page_cache_size = "512MB" # Buffer size for SST writing. sst_write_buffer_size = "8MB" diff --git a/src/mito2/src/config.rs b/src/mito2/src/config.rs index f58266fd0db1..a51d469de3b5 100644 --- a/src/mito2/src/config.rs +++ b/src/mito2/src/config.rs @@ -65,7 +65,7 @@ pub struct MitoConfig { pub sst_meta_cache_size: ReadableSize, /// Cache size for vectors and arrow arrays (default 512MB). Setting it to 0 to disable the cache. pub vector_cache_size: ReadableSize, - /// Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. + /// Cache size for pages of SST row groups (default 512MB). Setting it to 0 to disable the cache. pub page_cache_size: ReadableSize, // Other configs: @@ -87,7 +87,7 @@ impl Default for MitoConfig { global_write_buffer_reject_size: ReadableSize::gb(2), sst_meta_cache_size: ReadableSize::mb(128), vector_cache_size: ReadableSize::mb(512), - page_cache_size: ReadableSize::gb(2), + page_cache_size: ReadableSize::mb(512), sst_write_buffer_size: ReadableSize::mb(8), } }