Skip to content

support sentinel myid subcommand#7858

Merged
oranagra merged 1 commit intoredis:unstablefrom
hwware:sentinel_id
Oct 5, 2020
Merged

support sentinel myid subcommand#7858
oranagra merged 1 commit intoredis:unstablefrom
hwware:sentinel_id

Conversation

@hwware
Copy link
Contributor

@hwware hwware commented Sep 28, 2020

This commit provides a fast way to get current sentinel id. Similar to Cluster myid subcommand. Currently there is no good way to get current sentinel id, other than jumping to the top of sentinel run log file when sentinel starts. Getting sentinel id would be helpful when analysing sentinel behaviour in logs, such as:

1958:X 15 Apr 19:36:46.426 # +try-failover master redisroute144200262587 10.133.0.56 6379
1958:X 15 Apr 19:36:46.430 # +vote-for-leader b7b5e68f89e1593427afde670b7c1ff5bc1fbe8f 14
1958:X 15 Apr 19:36:46.440 # 24f3ea9e48876738c8ed52a3f2fe5f0f9d9fdd81 voted for b7b5e68f89e1593427afde670b7c1ff5bc1fbe8f 14

@itamarhaber itamarhaber added class:feature state:major-decision Requires core team consensus state:needs-doc-pr requires a PR to redis-doc repository labels Sep 29, 2020
@oranagra oranagra added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label Sep 29, 2020
@oranagra oranagra merged commit 57b8e00 into redis:unstable Oct 5, 2020
@oranagra
Copy link
Member

oranagra commented Oct 5, 2020

@hwware thanks. can you make a redis-doc PR as well?
@itamarhaber i assume you meant here: https://redis.io/topics/sentinel

@hwware
Copy link
Contributor Author

hwware commented Oct 8, 2020

hi @oranagra , will do. thanks for the reminder.

@hwware
Copy link
Contributor Author

hwware commented Oct 13, 2020

hi @oranagra,please review this doc pr redis/redis-doc#1418, thanks. Please note there are some commands missing except the sentinel myid one, i added all the missing commands back in that pr.

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
@hwware hwware deleted the sentinel_id branch November 6, 2020 20:30
@oranagra oranagra mentioned this pull request Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

class:feature state:major-decision Requires core team consensus state:needs-doc-pr requires a PR to redis-doc repository state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants