Purpose
This command is used to migrate a replica of a specified stream from the source LN to the target LN.
Syntax
ls_ctrl -H <HOST_ADDRESS> migrate replica <STREAM_ID> <SRC_LN> <DEST_LN>
Parameters
Parameter |
Description |
|---|---|
<STREAM_ID> |
Required. The ID of the target stream (u64). |
<SRC_LN> |
Required. The ID (u64) or address (host:port) of the source LN. |
<DEST_LN> |
Required. The ID (u64) or address (host:port) of the target LN. |
Note
<SRC_LN> and <DEST_LN> must be in the same format (either both IDs or both addresses). Mixing them causes an error.
Examples
Use an LN ID
ls_ctrl -H 127.0.0.1:7891 migrate replica 4360635369 1 4
Use an LN address
ls_ctrl -H 127.0.0.1:7891 migrate replica 4360635369 127.0.0.1:7890 127.0.0.1:7898