mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
gossip: Wait longer for seed node during boot up
When start a cluster on AWS, the seed node might get ready after non-seed nodes is ready to contact it. Wait for seed node longer to make the boot up process more robust.
This commit is contained in:
@@ -1284,11 +1284,11 @@ future<> gossiper::do_shadow_round() {
|
|||||||
return make_ready_future<>();
|
return make_ready_future<>();
|
||||||
}).get();
|
}).get();
|
||||||
}
|
}
|
||||||
if (clk::now() > t + storage_service_ring_delay()) {
|
if (clk::now() > t + storage_service_ring_delay() * 60) {
|
||||||
throw std::runtime_error(sprint("Unable to gossip with any seeds (ShadowRound)"));
|
throw std::runtime_error(sprint("Unable to gossip with any seeds (ShadowRound)"));
|
||||||
}
|
}
|
||||||
if (this->_in_shadow_round) {
|
if (this->_in_shadow_round) {
|
||||||
logger.trace("Sleep 1 second and retry ...");
|
logger.info("Sleep 1 second and connect seeds again ... ({} seconds passed)", std::chrono::duration_cast<std::chrono::seconds>(clk::now() - t).count());
|
||||||
sleep(std::chrono::seconds(1)).get();
|
sleep(std::chrono::seconds(1)).get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user