@@ -656,35 +656,11 @@ raft-peers :
656656# Raft election timeout in milliseconds
657657# This is the time to wait before starting a new election if no heartbeat is received
658658# A larger value reduces the chance of unnecessary elections but increases failover time
659- # Optimized default: 300ms (for faster failover, was 1000ms)
660- # Range: 100-5000ms, Recommended: 300-500ms for LAN
661- raft-election-timeout-ms : 300
659+ # Default value is 1000ms (1 second)
660+ raft-election-timeout-ms : 1000
662661
663662# Raft snapshot interval in seconds
664663# This determines how often Raft takes snapshots of the state machine
665664# Snapshots are used to compact the log and speed up node recovery
666665# Default value is 3600 seconds (1 hour)
667666raft-snapshot-interval-s : 3600
668-
669- ## Raft Performance Tuning (批处理性能优化)
670-
671- # Enable request batching for better throughput
672- # When enabled, multiple client requests are batched into a single Raft log entry
673- # This significantly reduces Raft consensus overhead
674- # Default: yes (enabled for optimal performance)
675- raft-enable-batching : yes
676-
677- # Batch timeout in milliseconds
678- # How long to wait before flushing a batch (if max-batch-size not reached)
679- # Lower values = lower latency but less batching benefit
680- # Higher values = more batching but higher P99 latency
681- # Range: 1-10ms, Recommended: 2-5ms
682- # Default: 2ms
683- raft-batch-timeout-ms : 2
684-
685- # Maximum number of requests in a single batch
686- # When this limit is reached, the batch is flushed immediately
687- # Higher values = more batching but higher memory usage
688- # Range: 100-10000, Recommended: 500-2000
689- # Default: 1000
690- raft-max-batch-size : 1000
0 commit comments