forked from TencentBlueKing/blueking-dbm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redis): redis强制重建slave同步关系 TencentBlueKing#7135
- Loading branch information
1 parent
4e3770b
commit c8778ac
Showing
9 changed files
with
559 additions
and
7 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
dbm-services/redis/db-tools/dbactuator/example/redis_replicas_force_resync.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,17 @@ | ||
### redis_replicas_force_resync | ||
redis slave 强制重同步. | ||
|
||
|
||
``` | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="redis_replicas_force_resync" --data_dir=/path/to/data --backup_dir=/path/to/backup --payload='{{payload_base64}}' | ||
``` | ||
|
||
`--data_dir`、`--backup_dir` 可以留空. | ||
|
||
原始payload | ||
```json | ||
{ | ||
"slave_ip":"xx.xx.xx.xx", | ||
"slave_ports":[30000,30001] | ||
} | ||
``` |
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.