{"id":20643985,"url":"https://github.com/adjust/redis_failover","last_synced_at":"2025-10-11T11:14:56.129Z","repository":{"id":12910075,"uuid":"15587389","full_name":"adjust/redis_failover","owner":"adjust","description":"redis failover scripts","archived":false,"fork":false,"pushed_at":"2021-03-23T15:43:42.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":73,"default_branch":"master","last_synced_at":"2025-04-16T02:06:19.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/adjust.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":"2014-01-02T15:50:34.000Z","updated_at":"2019-04-26T14:12:10.000Z","dependencies_parsed_at":"2022-09-07T17:23:42.075Z","dependency_job_id":null,"html_url":"https://github.com/adjust/redis_failover","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/adjust%2Fredis_failover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fredis_failover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fredis_failover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fredis_failover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adjust","download_url":"https://codeload.github.com/adjust/redis_failover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249183102,"owners_count":21226141,"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":[],"created_at":"2024-11-16T16:14:28.925Z","updated_at":"2025-10-11T11:14:51.088Z","avatar_url":"https://github.com/adjust.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"redis failover\n==============\n\nredis failover scripts\n\n## Scope\n\nThis lib is supposed to be the glue between [Redis Sentinel](http://redis.io/topics/sentinel) and [Nutcracker/Twemproxy](https://github.com/twitter/twemproxy).\n\n## Build\n\n```\n$ perl Build.PL\n$ ./Build installdeps\n$ ./Build test\n$ ./Build install\n```\n\n## Usage\n\nInstall the lib on the same server as Nutcracker.\n\n```\nusage:\nfailover.pl --out \u003cnutcracker.yml\u003e --help\n\n    --sentinel  | -s define sentinel server\n                     default: 'localhost:26379'\n\n    --command        define the command to restart nutcracker\n                     default: 'sudo /etc/init.d/nutcracker restart'\n\n    --out       | -o output to specified file\n                     default: '/etc/nutcracker/nutcracker.yml'\n\n    --pretend   | -p write config, but don't issue restart\n                     print nutcracker start command\n                     default: false\n\n    --check     | -c quick check if redis can rewrite nutcracker config\n                     default: false\n\n    --help      | -h display this help and exit\n```\n\nAfter successful installation add it to your sentinel config:\n\n```\nsentinel monitor my_master redis.example.com 6379 1\nsentinel down-after-milliseconds my_master 3000\nsentinel parallel-syncs my_master 1\nsentinel failover-timeout my_master 180000\nsentinel client-reconfig-script my_master /usr/bin/failover.pl\n```\n\nIf a failover get triggered, sentinel will rewrite the nutcracker config.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fredis_failover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadjust%2Fredis_failover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fredis_failover/lists"}