You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "git-hulk (via GitHub)" <gi...@apache.org> on 2024/05/04 03:17:14 UTC
[PR] Add support of the failover command [kvrocks-controller]
git-hulk opened a new pull request, #173:
URL: https://github.com/apache/kvrocks-controller/pull/173
Before running the failover command, the cluster state is:
```
|-------|------------------------------------------|----------------|--------|-----------|
| SHARD | NODE ID | ADDRESS | ROLE | MIGRATING |
|-------|------------------------------------------|----------------|--------|-----------|
| 0 | YNgiFCBjjRYJYA3k9kyGmQrCESfgQdMhmQrdfG1g | 127.0.0.1:7770 | MASTER | NO |
| 0 | gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy | 127.0.0.1:7771 | SLAVE | NO |
|-------|------------------------------------------|----------------|--------|-----------|
```
Then run the failover command with:
```
❯ ./_build/kvctl failover shard 0 -n test-ns -c test-cluster
failover shard 0 successfully, new master id: gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy.
```
And it will get the cluster:
```
|-------|------------------------------------------|----------------|--------|-----------|
| SHARD | NODE ID | ADDRESS | ROLE | MIGRATING |
|-------|------------------------------------------|----------------|--------|-----------|
| 0 | YNgiFCBjjRYJYA3k9kyGmQrCESfgQdMhmQrdfG1g | 127.0.0.1:7770 | SLAVE | NO |
| 0 | gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy | 127.0.0.1:7771 | MASTER | NO |
|-------|------------------------------------------|----------------|--------|-----------|
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add support of the failover command [kvrocks-controller]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk merged PR #173:
URL: https://github.com/apache/kvrocks-controller/pull/173
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org