-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7313a75
commit 52da228
Showing
27 changed files
with
2,152 additions
and
88 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
dbm-services/redis/db-tools/dbactuator/example/redis_cluster_failover.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### redis cluster failover | ||
redis cluster failover | ||
`./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="redis_cluster_failover" --data_dir=/path/to/data --backup_dir=/path/to/backup --payload='{{payload_base64}}'` | ||
|
||
`--data_dir`、`--backup_dir` 可以留空. | ||
|
||
|
||
原始payload | ||
```json | ||
{ | ||
"redis_password":"xxxx", | ||
"redis_master_slave_pairs":[ | ||
{ | ||
"master": {"ip":"a.a.a.a","port":"30000"}, | ||
"slave": {"ip":"b.b.b.b","port":"30000"} | ||
}, | ||
{ | ||
"master": {"ip":"a.a.a.a","port":"30001"}, | ||
"slave": {"ip":"b.b.b.b","port":"30001"} | ||
} | ||
], | ||
"force":false | ||
} | ||
``` |
21 changes: 21 additions & 0 deletions
21
dbm-services/redis/db-tools/dbactuator/example/redis_version_update.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### redis version update | ||
redis版本更新 | ||
`./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="redis_version_update" --data_dir=/path/to/data --backup_dir=/path/to/backup --payload='{{payload_base64}}'` | ||
|
||
`--data_dir`、`--backup_dir` 可以留空. | ||
|
||
前置工作: | ||
- 将`redis-6.2.7.tar.gz`下载到`/data/install`目录下; | ||
|
||
|
||
原始payload | ||
```json | ||
{ | ||
"pkg":"redis-6.2.7.tar.gz", | ||
"pkg_md5":"1fc9e5c3a044ce523844a6f2717e5ac3", | ||
"ip":"127.0.0.1", | ||
"ports":[30000,30001,30002], //端口不连续 | ||
"password":"xxx", | ||
"role":"redis_master" // or redis_slave | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.