Skip to content

Commit

Permalink
[Opt](config) adjust segment cache (apache#42308)
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 dba6296 commit 39c4987
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 @@ -1089,8 +1089,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, "40");
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 39c4987

Please sign in to comment.