Skip to content

Commit

Permalink
modify default config apply-max-batch-size and snap-handle-pool-size (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
hehechen authored Dec 29, 2021
1 parent e5a935f commit fa0782f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/raftstore/src/store/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Default for Config {
peer_stale_state_check_interval: ReadableDuration::minutes(5),
leader_transfer_max_log_lag: 128,
snap_apply_batch_size: ReadableSize::mb(10),
snap_handle_pool_size: 4,
snap_handle_pool_size: 2,
region_worker_tick_interval: ReadableDuration::millis(500),
lock_cf_compact_interval: ReadableDuration::minutes(10),
lock_cf_compact_bytes_threshold: ReadableSize::mb(256),
Expand Down Expand Up @@ -428,7 +428,7 @@ impl Config {
return Err(box_err!("apply-max-batch-size should be greater than 0"));
}
} else {
self.apply_batch_system.max_batch_size = Some(512);
self.apply_batch_system.max_batch_size = Some(256);
}
if self.store_batch_system.pool_size == 0 {
return Err(box_err!("store-pool-size should be greater than 0"));
Expand Down

0 comments on commit fa0782f

Please sign in to comment.