tools/codis2pika/docs/quick_start_en.md
.
├── codis2pika # binary executable
└── codis2pika.toml # configuration file
Edit codis2pika.toml with the following configuration:
[source]
type = "sync"
address = "codis-server-host:6379"
password = "xxxxx"
[target]
type = "standalone"
address = "192.168.0.1:6379"
password = "xxxxx"
Start codis2pika:
./codis2pika codis2pika.toml
Edit codis2pika.toml with the following configuration:
[source]
type = "sync"
address = "codis-server-host-1:6379"
password = "xxxxx"
[target]
type = "standalone"
address = "192.168.0.1:6379" # any node address in the cluster
password = "xxxxx"
[advanced]
dir = "data" # must be unique
Copy for the second instance: cp codis2pika.toml codis2pika2.toml
[source]
type = "sync"
address = "codis-server-host-2:6379"
password = "xxxxx"
[target]
type = "standalone"
address = "192.168.0.1:6379" # any node address in the cluster
password = "xxxxx"
[advanced]
dir = "data2" # must be unique
Start codis2pika:
nohup ./codis2pika codis2pika.toml &
nohup ./codis2pika codis2pika2.toml &
Similarly, multiple instances of cluster C can be started to achieve migration from a Codis cluster to a Pika cluster.