Repository navigation
Conversation
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
left a comment
There was a problem hiding this comment.
LGTM. Some optional nits. You can decide to handle them or not, then feel free to merge.
|
|
||
| $ valkey-cli -p 5000 | ||
| 127.0.0.1:5000> sentinel master mymaster | ||
| 127.0.0.1:5000> sentinel primary mymaster |
There was a problem hiding this comment.
Update the name mymaster too?
| * **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. |
There was a problem hiding this comment.
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)
| 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`.) |
There was a problem hiding this comment.
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.
|
@lucasyonge Sentinel expert, feel free to take a look. |
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