Skip to content

Commit

Permalink
Merge pull request #93 from eBay/ae-dev
Browse files Browse the repository at this point in the history
decrease raft ae interval from 20ms to 10ms
  • Loading branch information
crystal-xu authored Sep 15, 2023
2 parents ae4e15b + 0339404 commit 5277c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/raft/RaftConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct RaftConstants {
static constexpr uint64_t kMaxElectionTimeoutInMillis = kMinElectionTimeoutInMillis * 2;

/// heart beat interval that leader will wait before sending a heartbeat to follower
static const uint64_t kHeartBeatIntervalInMillis = 20;
static const uint64_t kHeartBeatIntervalInMillis = 10;

struct AppendEntries { static constexpr uint64_t kRpcTimeoutInMillis = 300; };
struct RequestVote { static constexpr uint64_t kRpcTimeoutInMillis = 100; };
Expand Down

0 comments on commit 5277c85

Please sign in to comment.