Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverneverer committed Mar 1, 2021
1 parent 928380f commit c34d8f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rfcs/2021-02-22-disk-migrater.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Disk-Migrater operates by sending `RPC_REPLICA_DISK_MIGRATE` rpc to the targeted
5. After the learning process is completed, the entire disk-migration ends.

## Replica States
In the process of migration, the `origin replica ` and `new replica` will have different states as follow
In the process of migration, the `origin replica ` and `new replica` will have different states as follow:
| process |origin replica status[dir name] | new replica status[dir name] |
|---|---|---|
|IDEL |primary/secondary[gpid.pegasus] |--[--] |
Expand All @@ -47,8 +47,8 @@ In the process of migration, the `origin replica ` and `new replica` will have d
| COMPLETED |error[gpid.pegasus.disk.migrate.ori] |secondary[gpid.pegasus] |

**Note:**
* if replica status is `primary`, you need assign `secondary` manually via [propose](http://pegasus.apache.org/administration/rebalance)
* any process is failed, the operation will be failed and reverted the `IDEL` status
* If replica status is `primary`, you need assign it `secondary` manually via [propose](http://pegasus.apache.org/administration/rebalance).
* Any process is failed, the operation will be failed and reverted the `IDEL` status.

## Client Command
The `client` sending rpc now is [admin-cli](https://github.com/pegasus-kv/admin-cli) which support `query disk info` and `migrate disk replica`, the command like this(`help` can see the detail command ):
Expand All @@ -61,4 +61,4 @@ disk-replica -n node -d disk
disk-migrate -n node -g gpid -f disk1 -t disk2
```

It's noticed that the migration is manual, and we hope the future work is `admin-cli` can create `whole disk balance plan/step` and then automatically migrate data to balance all disk as much as possible
It's noticed that the migration is manual, and we hope the future work is `admin-cli` can create `whole disk balance plan/step` and then automatically migrate data to balance all disk as much as possible.

0 comments on commit c34d8f5

Please sign in to comment.