{"id":37418123,"url":"https://github.com/leonchen83/redis-cluster-watchdog","last_synced_at":"2026-01-16T06:03:05.717Z","repository":{"id":22427394,"uuid":"96218760","full_name":"leonchen83/redis-cluster-watchdog","owner":"leonchen83","description":"pretend as a redis cluster node which accept RCmb(Redis Cluster message bus) message and play with redis cluster","archived":false,"fork":false,"pushed_at":"2022-01-05T03:07:36.000Z","size":745,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-17T16:18:52.342Z","etag":null,"topics":["cluster","gossip","monitor","redis","redis-cluster"],"latest_commit_sha":null,"homepage":"","language":"Java","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/leonchen83.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":"2017-07-04T13:01:10.000Z","updated_at":"2022-01-05T03:07:30.000Z","dependencies_parsed_at":"2022-08-07T10:15:40.402Z","dependency_job_id":null,"html_url":"https://github.com/leonchen83/redis-cluster-watchdog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonchen83/redis-cluster-watchdog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonchen83%2Fredis-cluster-watchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonchen83%2Fredis-cluster-watchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonchen83%2Fredis-cluster-watchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonchen83%2Fredis-cluster-watchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonchen83","download_url":"https://codeload.github.com/leonchen83/redis-cluster-watchdog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonchen83%2Fredis-cluster-watchdog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cluster","gossip","monitor","redis","redis-cluster"],"created_at":"2026-01-16T06:03:05.648Z","updated_at":"2026-01-16T06:03:05.703Z","avatar_url":"https://github.com/leonchen83.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis-cluster-watchdog\n\n`redis-cluster-watchdog` can pretend as a redis cluster node which accept `RCmb(Redis Cluster message bus)` message and play with redis cluster.\n\n# Run an example\n\n## Create a redis cluster\n\n```java  \n\n$wget https://github.com/antirez/redis/archive/4.0.0.tar.gz\n$tar -xvzf 4.0.0.tar.gz\n$cd redis-4.0.0\n$make MALLOC=libc\n$cp src/redis-trib.rb /usr/local/bin/\n$gem install redis\n$cd utils/create-cluster\n$./create-cluster start\n$./create-cluster create\n\n```\n\n## Run redis-cluster-watchdog\n\n```java  \n\n    public static void main(String[] args) {\n        ClusterWatchdog watchdog = new RedisClusterWatchdog(ClusterConfiguration.defaultSetting().setClusterAnnouncePort(10001));\n        watchdog.start();\n    }\n\n```\n\n## Add redis-cluster-watchdog to redis cluster as a normal node\n\n```java  \n\n$cd /path/to/redis-4.0.0/src\n$./redis-cli -p 10001\n127.0.0.1:10001\u003ecluster meet 127.0.0.1 30001\n\n```\n\n## Supported commands\n\n`CLUSTER MEET ip port \u003ccport\u003e`  \n`CLUSTER NODES`  \n`CLUSTER MYID`  \n`CLUSTER SLOTS`  \n`CLUSTER BUMPEPOCH`  \n`CLUSTER INFO`  \n`CLUSTER SAVECONFIG`  \n`CLUSTER KEYSLOT`  \n`CLUSTER FORGET nodename`  \n`CLUSTER REPLICATE nodename`  \n`CLUSTER SLAVES nodename`  \n`CLUSTER COUNT-FAILURE-REPORTS nodename`  \n`CLUSTER SET-CONFIG-EPOCH epoch`  \n`CLUSTER RESET \u003cHARD | SOFT\u003e`  \n`CLUSTER ADDSLOTS slot \u003cslot\u003e`  \n`CLUSTER DELSLOTS slot \u003cslot\u003e`  \n`CLUSTER SETSLOT slot MIGRATING nodename`  \n`CLUSTER SETSLOT slot IMPORTING nodename`  \n`CLUSTER SETSLOT slot STABLE`  \n`CLUSTER SETSLOT slot NODE nodename`  \n`CLUSTER GETKEYSINSLOT slot count` \n`CLUSTER COUNTKEYSINSLOT slot` \n\n## Supported redis-trib.rb command\n\n`redis-trib.rb create \u003c--replicas N\u003e host1:port1 ... hostN:portN`  \n`redis-trib.rb check host:port`  \n`redis-trib.rb info host:port`  \n`redis-trib.rb rebalance \u003c--weight N\u003e --auto-weights --threshold N --use-empty-masters --simulate --timeout milliseconds --pipeline N`  \n`redis-trib.rb reshard --from arg --to nodename --slots N --yes --timeout milliseconds --pipeline N host:port`  \n`redis-trib.rb add-node \u003c--slave --master-id masterid\u003e new_host:new_port existing_host:existing_port`  \n`redis-trib.rb del-node host:port node_id`  \n`redis-trib.rb call host:port command arg arg .. arg`  \n`redis-trib.rb set-timeout host:port milliseconds`  \n`redis-trib.rb import --from host:port \u003c--copy\u003e \u003c--replace\u003e host:port`  \n`redis-trib.rb help`  \n\n## Listeners  \n\n`ReplicationListener`  \n`ClusterNodeListener`  \n`ClusterStateListener`  \n`ClusterConfigListener`  \n\n# Have fun!!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonchen83%2Fredis-cluster-watchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonchen83%2Fredis-cluster-watchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonchen83%2Fredis-cluster-watchdog/lists"}