You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2024/09/04 14:55:36 UTC
Re: [I] [Feature] Note the old raft config will be deprecated [incubator-hugegraph]
dosubot[bot] commented on issue #2660:
URL: https://github.com/apache/incubator-hugegraph/issues/2660#issuecomment-2329291483
<!-- Answer -->
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 <sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/config/config-option.md)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/config/config-option.md)</sup>.
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` <sup>[[3]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/raft/RaftUtilsTest.java)</sup><sup>[[4]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/raft/HgStoreStateMachineTest.java)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org