{"id":22419327,"url":"https://github.com/codegasms/sisyphus","last_synced_at":"2025-03-27T04:40:22.185Z","repository":{"id":265611188,"uuid":"866133566","full_name":"codegasms/sisyphus","owner":"codegasms","description":"Tiny load balancer in Go","archived":false,"fork":false,"pushed_at":"2024-10-02T21:42:06.000Z","size":8134,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T09:44:22.611Z","etag":null,"topics":["go","hacktoberfest","load-balancer","load-testing"],"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/codegasms.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-01T17:49:08.000Z","updated_at":"2024-10-02T21:42:07.000Z","dependencies_parsed_at":"2024-11-30T09:10:38.705Z","dependency_job_id":null,"html_url":"https://github.com/codegasms/sisyphus","commit_stats":null,"previous_names":["codegasms/sisyphus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegasms%2Fsisyphus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegasms%2Fsisyphus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegasms%2Fsisyphus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegasms%2Fsisyphus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codegasms","download_url":"https://codeload.github.com/codegasms/sisyphus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785715,"owners_count":20671631,"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":["go","hacktoberfest","load-balancer","load-testing"],"created_at":"2024-12-05T16:15:09.100Z","updated_at":"2025-03-27T04:40:22.153Z","avatar_url":"https://github.com/codegasms.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sisyphus\n\nA tiny load balancer in Go.\n\n## Instructions\n\n```console\n# Build sisyphus, summit and zeus\n$ make\n\n# Format the entire project\n$ make fmt\n\n# Clean the built binaries\n$ make clean\n\n# Start sisyphus\n$ PORT=8000 ./bin/sisyphus\n\n# Start summit\n$ PORT=3000 ./bin/summit\n\n# Test using curl\n$ curl localhost:8000/health\n\n# Auto load-testing using zeus. Provide the address of the load-balancer (sisyphus).\n$ HOST='localhost:8000' ./bin/zeus\n```\n\n## Load Balancer Configuration\n\n```json\n# Add a config.json file in /data directory with the following content structure:\n\n{\n  \"servers\": [\"\u003cip1\u003e:\u003cport1\u003e\", \"\u003cip2\u003e:\u003cport2\u003e\", ...],\n  \"weights\": [\u003cx1\u003e, \u003cx2\u003e, ...],\n  \"strategy\": \"\u003cstrategy\u003e\"\n}\n```\n\n\u003e Note that \\\u003ctext\u003e are placeholders. Replace them with the actual values.\n\n```json\n# Example config.json file:\n\n{\n  \"servers\": [\"127.0.0.1:3000\", \"127.0.0.1:3001\", \"127.0.0.1:3002\", \"127.0.0.1:3003\"],\n  \"weights\": [1, 2, 3, 4],\n  \"strategy\": \"round-robin\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegasms%2Fsisyphus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegasms%2Fsisyphus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegasms%2Fsisyphus/lists"}