incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Feature] Note the old raft config will be deprecated

Open shirleyStorage opened this issue 2 years ago • 1 comments

Feature Description (功能描述)

As described in https://github.com/apache/incubator-hugegraph/issues/2575 issue
Note the old raft config will be deprecated

shirleyStorage avatar Sep 04 '24 14:09 shirleyStorage

The old raft configuration includes the following parameters and settings:

  • raft.mode: false - Whether the backend storage works in raft mode.
  • raft.safe_read: false - Whether to use linearly consistent read.
  • raft.use_snapshot: false - Whether to use snapshot.
  • raft.endpoint: 127.0.0.1:8281 - The peerid of current raft node.
  • raft.group_peers: 127.0.0.1:8281,127.0.0.1:8282,127.0.0.1:8283 - The peers of current raft group.
  • raft.path: ./raft-log - The log path of current raft node.
  • raft.use_replicator_pipeline: true - Whether to use replicator line, when turned on it multiple logs can be sent in parallel, and the next log doesn't have to wait for the ack message of the current log to be sent.
  • raft.election_timeout: 10000 - Timeout in milliseconds to launch a round of election.
  • raft.snapshot_interval: 3600 - The interval in seconds to trigger snapshot save.
  • raft.queue_size: 16384 - The disruptor buffers size for jraft RaftNode, StateMachine, and LogManager.
  • raft.queue_publish_timeout: 60 - The timeout in seconds when publishing an event into disruptor.
  • raft.rpc_threads: 80 - The RPC threads for jraft RPC layer [1][2].

Additionally, there are tests related to the raft configuration that need to be updated or deprecated along with the old configuration. These include tests in RaftUtilsTest.java and HgStoreStateMachineTest.java [3][4].

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Sep 04 '24 14:09 dosubot[bot]