Skip to content

Update Sentinel primary command names - #579

Open
Andriciuc wants to merge 2 commits into
valkey-io:mainfrom
Andriciuc:update-sentinel-commands
Open

Andriciuc wants to merge 2 commits into
valkey-io:mainfrom
Andriciuc:update-sentinel-commands

Conversation

@Andriciuc

Copy link
Copy Markdown
Contributor

This PR updates the Sentinel examples and command references to use the Valkey 8.0 primary terminology, and clarifies deprecated aliases and ACL compatibility.

Tested on Valkey 9.1.2 with WSL Ubuntu, a throwaway primary on port 16379, and a Sentinel on port 15000 watching mymaster.

Closes #578

This PR updates the Sentinel examples and command references to use the Valkey 8.0 primary terminology, and clarifies deprecated aliases and ACL compatibility.

Tested on Valkey 9.1.2 with WSL Ubuntu, a throwaway primary on port 16379, and a Sentinel on port 15000 watching `mymaster`.

Closes valkey-io#578

Signed-off-by: Dragos Andriciuc <andriciucdragos@protonmail.com>

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some optional nits. You can decide to handle them or not, then feel free to merge.

Comment thread topics/sentinel.md

$ valkey-cli -p 5000
127.0.0.1:5000> sentinel master mymaster
127.0.0.1:5000> sentinel primary mymaster

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the name mymaster too?

Comment thread topics/sentinel.md
* **SENTINEL SIMULATE-FAILURE (crash-after-election|crash-after-promotion|help)** This command simulates different Sentinel crash scenarios.
* **SENTINEL RESET `<pattern>`** This command will reset all the primaries with matching name. The pattern argument is a glob-style pattern. The reset process clears any previous state in a primary (including a failover in progress), and removes every replica and sentinel already discovered and associated with the primary.

The deprecated subcommands `SENTINEL MASTER`, `SENTINEL MASTERS`, `SENTINEL GET-MASTER-ADDR-BY-NAME`, and `SENTINEL IS-MASTER-DOWN-BY-ADDR` are still accepted for backward compatibility. Use them only with Sentinel versions older than 8.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know sentinel very well, but I know it's something client libraries need to implement. If a client library (e.g. valkey-py) wants to support all versions of valkey, do we want it to ideally use a different command depending on which Valkey version it's connecting to? (master vs primary naming)

Comment thread topics/sentinel.md
number configured as the `quorum` parameter of the monitored primary) have
an SDOWN condition, and get feedback from other Sentinels using
the `SENTINEL is-master-down-by-addr` command.
the `SENTINEL IS-PRIMARY-DOWN-BY-ADDR` command. (Sentinel itself still sends this request to other Sentinels under the deprecated name, `IS-MASTER-DOWN-BY-ADDR`.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth a note about this next to the ACL SETUSER instructions above? It shows that it's important to keep allowing the MASTER variant this command.

@zuiderkwast

Copy link
Copy Markdown
Contributor

@lucasyonge Sentinel expert, feel free to take a look.

@Andriciuc
Andriciuc requested a review from lucasyonge December 4, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update deprecated SENTINEL subcommand names in the sentinel.md topic

2 participants