Skip to content

Sandbox for the future implementation of Iggy.rs clustering feature.

License

Notifications You must be signed in to change notification settings

iggy-rs/iggy-cluster-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iggy Cluster Sandbox

Sandbox for the future implementation of Iggy.rs clustering feature, currently based on Raft consensus algorithm.

To compile the project, install the nightly version of Rust, which is required by monoio runtime.

To start the project, at first open 3 distinct terminals and set the following environment variables:

export IGGY_NODE_CONFIG_PATH=configs/node1.toml
export IGGY_NODE_CONFIG_PATH=configs/node2.toml
export IGGY_NODE_CONFIG_PATH=configs/node3.toml

Then, in each terminal, simply run each node with cargo r --bin iggy-node. The cluster should start and the leader election process should begin. Try disconnecting one of the nodes and see how the cluster reacts. The data will be stored under local_data directory unless configured otherwise.

To start the CLI, run cargo r --bin iggy-cli.

About

Sandbox for the future implementation of Iggy.rs clustering feature.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages