Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] SENTINEL SUBCOMMANDS #4

Open
4 of 22 tasks
duongcongtoai opened this issue Feb 22, 2022 · 0 comments
Open
4 of 22 tasks

[Feature] SENTINEL SUBCOMMANDS #4

duongcongtoai opened this issue Feb 22, 2022 · 0 comments

Comments

@duongcongtoai
Copy link
Collaborator

duongcongtoai commented Feb 22, 2022

Sentinels have those commands

  • SENTINEL masters, provides a list of configured masters.
  • SENTINEL slaves , provides a list of slaves for the master with the specified name.
  • SENTINEL sentinels , provides a list of sentinels for the master with the specified name.
  • SENTINEL is-master-down-by-addr , returns a two elements multi bulk reply where the first element is :0 or :1, and the second is the Subjective Leader for the failover.
  • CKQUORUM , Check if the current Sentinel configuration is able to reach the quorum needed to failover a master and the majority needed to authorize the failover.
  • CONFIG SET , Set a global Sentinel configuration parameter.
  • CONFIG GET Get global Sentinel configuration parameter.
  • GET-MASTER-ADDR-BY-NAME Return the ip and port number of the master with that name.
  • FAILOVER Manually failover a master node without asking for agreement from other Sentinels
  • FLUSHCONFIG Force Sentinel to rewrite its configuration on disk, including the current Sentinel state
  • MONITOR name ip port quorum , Start monitoring a new master with the specified name, ip, port and quorum.
  • MYID Return the ID of the Sentinel instance.
  • REMOVE master-name Remove master from Sentinel's monitor list.
  • REPLICAS Show a list of replicas for this master and their state.
  • RESET Reset masters for specific master name matching this pattern.
  • SENTINELS Show a list of Sentinel instances for this master and their state.
  • SET Set configuration parameters for certain masters.
  • SIMULATE-FAILURE (CRASH-AFTER-ELECTION|CRASH-AFTER-PROMOTION|HELP) Simulate a Sentinel crash.

Cmds that are important:

  • SENTINEL is-master-down-by-addr , returns a two elements multi bulk reply where the first element is :0 or :1, and the second is the Subjective Leader for the failover.
  • GET-MASTER-ADDR-BY-NAME Return the ip and port number of the master with that name.
  • MONITOR <name> <ip> <port> <quorum> Start monitoring a new master with the specified name, ip, port and quorum.
  • SENTINELS Show a list of Sentinel instances for this master and their state.
@duongcongtoai duongcongtoai changed the title SENTINEL SUBCOMMANDS [Feature] SENTINEL SUBCOMMANDS Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant