{"id":23893853,"url":"https://github.com/iskorotkov/bully-election","last_synced_at":"2026-05-10T02:38:03.699Z","repository":{"id":53557733,"uuid":"348467948","full_name":"iskorotkov/bully-election","owner":"iskorotkov","description":"Bully election algorithm for distributed systems","archived":false,"fork":false,"pushed_at":"2022-01-19T17:17:22.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-04T14:49:39.686Z","etag":null,"topics":["chaos-engineering","distributed-systems","docker","go","kubernetes","resilience"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iskorotkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-16T19:27:46.000Z","updated_at":"2022-01-19T17:17:26.000Z","dependencies_parsed_at":"2022-08-20T19:51:03.205Z","dependency_job_id":null,"html_url":"https://github.com/iskorotkov/bully-election","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskorotkov%2Fbully-election","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskorotkov%2Fbully-election/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskorotkov%2Fbully-election/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskorotkov%2Fbully-election/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iskorotkov","download_url":"https://codeload.github.com/iskorotkov/bully-election/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240277428,"owners_count":19775892,"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":["chaos-engineering","distributed-systems","docker","go","kubernetes","resilience"],"created_at":"2025-01-04T14:49:41.072Z","updated_at":"2026-05-10T02:37:58.649Z","avatar_url":"https://github.com/iskorotkov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bully election algorithm\n\n[![CodeQL](https://github.com/iskorotkov/bully-election/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/iskorotkov/bully-election/actions/workflows/codeql-analysis.yml)\n\nBully election algorithm for distributed systems implemented in Go for deploying in Kubernetes clusters.\n\n- [Bully election algorithm](#bully-election-algorithm)\n  - [Monitor](#monitor)\n  - [Build](#build)\n  - [Deploy](#deploy)\n  - [Limitations](#limitations)\n  - [Links](#links)\n\n## Monitor\n\n1. `/metrics` - use metrics endpoint to get info about replica state,\n1. Bully election dashboard - [web app for monitoring entire cluster](https://github.com/iskorotkov/bully-election-dashboard).\n\n## Build\n\n```sh\nmake build # to build locally.\nmake test # to run all tests.\nmake build-image # to build Docker image.\n```\n\n## Deploy\n\n```sh\nmake deploy # to deploy in Kubernetes cluster.\n```\n\n## Limitations\n\n1. sometimes cluster selects wrong leader on deployment creation,\n1. when number of pods is high (\u003e=20) there may be several leaders selected.\n\n## Links\n\n- [Bully algorithm - Wikipedia](https://en.wikipedia.org/wiki/Bully_algorithm)\n- [Bully Election Algorithm Example](https://www.cs.colostate.edu/~cs551/CourseNotes/Synchronization/BullyExample.html)\n- [Alternative implementation (Go)](https://github.com/TimTosi/bully-algorithm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiskorotkov%2Fbully-election","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiskorotkov%2Fbully-election","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiskorotkov%2Fbully-election/lists"}