HiWe support multi-raft.For 1, we use a hash map to store the raft region ID to the raft node, and multiplex the raft message to the according raft group with region ID.For 2, we don't support coalescing heartbeat now, the raft heartbeat is 3s and election timeout is 10s, so the heartbeat load is not heavy even we have many regions (10000+) in one store, but this may cause the raft election too long (10+), we will improve this later.
Hi jzhan> the leader may mark many log entries as committed, but may not propagate the commitIndex to the follower until the next heartbeatThe leader will send the committed index in the next AppendEntry message, If we have heavy write flow, this may be not a problem.