Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Note the old raft config will be deprecated #2660

Closed
shirleyStorage opened this issue Sep 4, 2024 · 1 comment · Fixed by #2661
Closed

[Feature] Note the old raft config will be deprecated #2660

shirleyStorage opened this issue Sep 4, 2024 · 1 comment · Fixed by #2661
Labels
feature New feature raft

Comments

@shirleyStorage
Copy link
Contributor

shirleyStorage commented Sep 4, 2024

Feature Description (功能描述)

As described in #2575 issue
Note the old raft config will be deprecated

@shirleyStorage shirleyStorage added the feature New feature label Sep 4, 2024
@dosubot dosubot bot added the raft label Sep 4, 2024
Copy link

dosubot bot commented Sep 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature raft
Projects
None yet
1 participant