{"id":19978757,"url":"https://github.com/s3rvac/redis-sentinel-example","last_synced_at":"2026-05-15T07:31:26.773Z","repository":{"id":74515696,"uuid":"241433165","full_name":"s3rvac/redis-sentinel-example","owner":"s3rvac","description":"A sample configuration of redis-sentinel on three nodes.","archived":false,"fork":false,"pushed_at":"2025-05-13T17:16:19.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T18:31:58.327Z","etag":null,"topics":["configuration","example","redis","redis-sentinel"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/s3rvac.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":"2020-02-18T18:11:51.000Z","updated_at":"2025-05-13T17:16:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce7080cb-0342-454e-b5c5-7553efc5c6ab","html_url":"https://github.com/s3rvac/redis-sentinel-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s3rvac/redis-sentinel-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rvac%2Fredis-sentinel-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rvac%2Fredis-sentinel-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rvac%2Fredis-sentinel-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rvac%2Fredis-sentinel-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s3rvac","download_url":"https://codeload.github.com/s3rvac/redis-sentinel-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rvac%2Fredis-sentinel-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33057823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["configuration","example","redis","redis-sentinel"],"created_at":"2024-11-13T03:35:12.317Z","updated_at":"2026-05-15T07:31:26.767Z","avatar_url":"https://github.com/s3rvac.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A sample configuration of redis-sentinel on three nodes\n\nAn example of a [redis-sentinel](https://redis.io/topics/sentinel)\nconfiguration on three nodes, including a testing Python client.\n\n_For educational and experimental use only._\n\nHere is the architecture:\n```\n       +----+\n       | M1 |\n       | S1 |\n       +----+\n          |\n+----+    |    +----+\n| R2 |----+----| R3 |\n| S2 |         | S3 |\n+----+         +----+\n```\n`R` denotes a redis-server instance, `S` denotes redis-sentinel instance, and\n`M` is the master.\n\nConfiguration files are in the [configs](configs) directory.\n\n## Requirements\n\n* [Virtualbox](https://www.virtualbox.org/) for running virtual machines\n* [Vagrant](https://www.vagrantup.com/) for setting up virtual machines\n\nTested on Linux with Redis 5.0.\n\n## Installation\n\nTo create all the three boxes, run\n```\nvagrant up\n```\n\n## Use\n\nTo SSH into the boxes, execute\n```\nvagrant ssh redis1\nvagrant ssh redis2\nvagrant ssh redis3\n```\nThen, run `sudo -Hs` to get `root` access. To see how failover works, you can\nstop redis-server by running\n```\nsystemctl stop redis-server\n```\nTo stop redis-sentinel, run\n```\nsystemctl stop redis-sentinel\n```\nYou can `tail -f` logs in `/var/log/redis` to see what is happening.\n\n## Python client\n\nIn [test-client](test-client), there is a simple Python script that you can use\nfor your experiments. It is based on\n[redis-py](https://redis-py.readthedocs.io/en/latest/).\n\n## License\n\nCopyright (c) 2020 Petr Zemek (\u003cs3rvac@gmail.com\u003e)\n\nDistributed under the MIT license. See the `LICENSE` file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rvac%2Fredis-sentinel-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs3rvac%2Fredis-sentinel-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rvac%2Fredis-sentinel-example/lists"}