Skip to content

Commit

Permalink
[Opt](config) adjust segment cache
Browse files Browse the repository at this point in the history
For wide tables the default segment cache capacity is relatively small and lead to many cache eviction in high compaction/query load
  • Loading branch information
eldenmoon committed Oct 24, 2024
1 parent 9f9d4c2 commit 96a9f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,8 @@ DEFINE_mInt32(schema_cache_sweep_time_sec, "100");
// max number of segment cache, default -1 for backward compatibility fd_number*2/5
DEFINE_Int32(segment_cache_capacity, "-1");
DEFINE_Int32(segment_cache_fd_percentage, "20");
DEFINE_mInt32(estimated_mem_per_column_reader, "1024");
DEFINE_Int32(segment_cache_memory_percentage, "2");
DEFINE_mInt32(estimated_mem_per_column_reader, "512");
DEFINE_Int32(segment_cache_memory_percentage, "5");

// enable feature binlog, default false
DEFINE_Bool(enable_feature_binlog, "false");
Expand Down

0 comments on commit 96a9f94

Please sign in to comment.