Skip to content

[raft/config] Support config changes#1572

Draft
MariemBaccari wants to merge 21 commits into
interuss:masterfrom
Orbitalize:add_config_changes
Draft

[raft/config] Support config changes#1572
MariemBaccari wants to merge 21 commits into
interuss:masterfrom
Orbitalize:add_config_changes

Conversation

@MariemBaccari

Copy link
Copy Markdown
Contributor

No description provided.

@the-glu the-glu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review

return nil, stacktrace.NewError("node ID %d not found in peers map", connectParams.NodeID)
}

// the persisted member list, takes precedence over --raft_peers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's overwritten, it should be inital_raft_peers (or bootstrap_) ?

}

// loadMembers loads the persisted node ID -> peer URL table from dataDir/members.json, if it exists.
func loadMembers(dataDir string) (map[uint64]string, error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File format should be versionned, so we can detect changes in the future

flag.Uint64Var(&connectParameters.NodeID, "raft_node_id", 0, "Raft node ID for this instance (must be non-zero and unique within the cluster).")
flag.Uint64Var(&connectParameters.ClusterID, "raft_cluster_id", 1, "ID of the cluster, used to isolate different Raft clusters running in the same network (must be the same for all nodes in the cluster).")
flag.StringVar(&connectParameters.DataDir, "raft_datadir", defaultDataDir, "Directory for raft data (WAL segments and snapshots), required for restarts. These should not be deleted while the node is running or across restarts unless the node is being permanently shut down.")
flag.BoolVar(&connectParameters.Join, "raft_join", false, "Set on a node's first start when it is joining an already-running cluster (added via raftctl) rather than participating in the cluster's initial bootstrap.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No way to detect that automatically? That going to complexity a lot join operations

@barroco barroco added the dss-raft Relating to the application-layer consensus implemenation based on raft label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dss-raft Relating to the application-layer consensus implemenation based on raft

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants