mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
update notices
This commit is contained in:
parent
cc1c3f2da3
commit
3058e59950
@ -26,7 +26,7 @@ struct Settings;
|
||||
M(Milliseconds, heart_beat_interval_ms, 500, "Heartbeat interval between quorum nodes", 0) \
|
||||
M(Milliseconds, election_timeout_lower_bound_ms, 1000, "Lower bound of election timer (avoid too often leader elections)", 0) \
|
||||
M(Milliseconds, election_timeout_upper_bound_ms, 2000, "Upper bound of election timer (avoid too often leader elections)", 0) \
|
||||
M(Milliseconds, leadership_expiry_ms, 0, "How long will a leader expire after not getting enough peer responses. Set it lower or equal to election_timeout_lower_bound_ms to avoid multiple leaders.", 0) \
|
||||
M(Milliseconds, leadership_expiry_ms, 0, "Duration after which a leader will expire if it fails to receive responses from peers. Set it lower or equal to election_timeout_lower_bound_ms to avoid multiple leaders.", 0) \
|
||||
M(UInt64, reserved_log_items, 100000, "How many log items to store (don't remove during compaction)", 0) \
|
||||
M(UInt64, snapshot_distance, 100000, "How many log items we have to collect to write new snapshot", 0) \
|
||||
M(Bool, auto_forwarding, true, "Allow to forward write requests from followers to leader", 0) \
|
||||
|
@ -319,16 +319,13 @@ void KeeperServer::launchRaftServer(const Poco::Util::AbstractConfiguration & co
|
||||
params.leadership_expiry_ = getValueOrMaxInt32AndLogWarning(
|
||||
coordination_settings->leadership_expiry_ms.totalMilliseconds(), "leadership_expiry_ms", log);
|
||||
|
||||
if (params.leadership_expiry_ > 0)
|
||||
if (params.leadership_expiry_ > 0 && params.leadership_expiry_ <= params.election_timeout_lower_bound_)
|
||||
{
|
||||
if (params.leadership_expiry_ < params.election_timeout_lower_bound_)
|
||||
{
|
||||
LOG_WARNING(
|
||||
log,
|
||||
"leadership_expiry_ is smaller than election_timeout_lower_bound_ms. "
|
||||
"Notice that too small leadership_expiry_ may make Raft group "
|
||||
"sensitive to network status.");
|
||||
}
|
||||
LOG_INFO(
|
||||
log,
|
||||
"leadership_expiry_ is smaller than or equal to election_timeout_lower_bound_ms, which can avoid multiple leaders. "
|
||||
"Notice that too small leadership_expiry_ may make Raft group sensitive to network status. "
|
||||
);
|
||||
}
|
||||
|
||||
params.reserved_log_items_ = getValueOrMaxInt32AndLogWarning(coordination_settings->reserved_log_items, "reserved_log_items", log);
|
||||
|
Loading…
Reference in New Issue
Block a user