{"id":18702640,"url":"https://github.com/issokuos/raft","last_synced_at":"2025-11-09T01:30:36.994Z","repository":{"id":38015927,"uuid":"358050342","full_name":"styvane/raft","owner":"styvane","description":"Raft consensus algorithm implementation.","archived":false,"fork":false,"pushed_at":"2024-02-02T20:43:36.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-28T06:07:26.688Z","etag":null,"topics":["distributed-systems","raft"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/styvane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-14T21:46:54.000Z","updated_at":"2022-11-07T10:17:17.000Z","dependencies_parsed_at":"2024-11-07T11:48:39.845Z","dependency_job_id":"f4debed1-0009-4c27-9ac8-1259f1a61e6b","html_url":"https://github.com/styvane/raft","commit_stats":null,"previous_names":["0x73656465/raft","styvane/raft"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styvane%2Fraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styvane%2Fraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styvane%2Fraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styvane%2Fraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styvane","download_url":"https://codeload.github.com/styvane/raft/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565662,"owners_count":19660157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-systems","raft"],"created_at":"2024-11-07T11:46:32.769Z","updated_at":"2025-11-09T01:30:36.960Z","avatar_url":"https://github.com/styvane.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"raft\n====\n\nThis is *another* attempt implementing the [Raft](https://raft.github.io/raft.pdf) consensus algorithm.\n\nIt's not indented to be used in production.\n\nI did not implement the following ideas in the paper:\n\n- Persistency(all states are volatiles).\n- Cluster membership changes\n- Log compaction\n\nTODO\n----\n\n- Leader discovery and confirmation\n- Append only *write* operation entry\n- Persist log and non-volatiles states.\n- Graceful shutdown\n\n\nInstallation\n------------\n\n```\ncargo install --bins --path kvserver\n```\n\nRun\n---\n\nTo run this, we need a configuration see [example](config.example.yaml).\n\nWe will then start the following processes. The number of processes depends on the configuration. \n\n```\nkvserver --config config.yaml --node-id 0 --port 21000\nkvserver --config config.yaml --node-id 1 --port 22000\nkvserver --config config.yaml --node-id 2 --port 23000\nkvserver --config config.yaml --node-id 3 --port 24000\nkvserver --config config.yaml --node-id 4 --port 25000\n```\n\nUsing the client to connect to the leader, then Set/Get/Delete values.\nI did not implement leader discovery, so you will need to watch the log to identifier the leader.\n\n```\nkvserver-client --port 23000 \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fissokuos%2Fraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fissokuos%2Fraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fissokuos%2Fraft/lists"}