From 9b1f9951b3584f5bc352ec8a395e0052ad620e61 Mon Sep 17 00:00:00 2001 From: evenyag Date: Thu, 2 Nov 2023 10:55:48 +0800 Subject: [PATCH] feat: enlarge page cache size --- config/datanode.example.toml | 4 ++-- config/standalone.example.toml | 4 ++-- src/mito2/src/config.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/datanode.example.toml b/config/datanode.example.toml index c7566d44d3bf..92d86ff2b4c1 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 1GB). Setting it to 0 to disable the cache. -page_cache_size = "1GB" +# Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. +page_cache_size = "2GB" # Log options # [logging] diff --git a/config/standalone.example.toml b/config/standalone.example.toml index eb1ede1dfb6a..1b6613c0c47f 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 1GB). Setting it to 0 to disable the cache. -page_cache_size = "1GB" +# Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. +page_cache_size = "2GB" # Log options # [logging] diff --git a/src/mito2/src/config.rs b/src/mito2/src/config.rs index 3ac7aefd4367..0810a142aa6d 100644 --- a/src/mito2/src/config.rs +++ b/src/mito2/src/config.rs @@ -63,7 +63,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 1GB). Setting it to 0 to disable the cache. + /// Cache size for pages of SST row groups (default 2GB). Setting it to 0 to disable the cache. pub page_cache_size: ReadableSize, } @@ -81,7 +81,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(1), + page_cache_size: ReadableSize::gb(2), } } }