ssdb icon indicating copy to clipboard operation
ssdb copied to clipboard

[Announce]SSDB now supports slaveof command!

Open ideawu opened this issue 6 years ago • 3 comments

Since 1.9.7, SSDB supports slaveof command. Usage:

slaveof id host port [auth last_seq last_key]

This command will start replication from host:port, which is named id, the sync point is defined by last_seq and last_key.

This command is helpul for data migration.

ideawu avatar May 01 '18 05:05 ideawu

Is this a temporary command (when the sync finishes the slave will be deleted?) If not can you please also add a type definition so that the mirror type can be selected?

Also; can it be possible to add a slavedel or delslave command to delete slaves from the running configuration?

This will greatly improve SSDB in docker as it then can enable horizontal scaling and fault tolerance :-)

rhessing avatar Jun 03 '18 11:06 rhessing

@rhessing

  1. mirror type will not be supported.
  2. I will consider delslave later, but not promised. However, a deleted slave will reconnect automatically, so delslave will make no sense.

ideawu avatar Jun 04 '18 03:06 ideawu

But if this slave configuration via the cli temporary or permanent until SSDB restarts?

rhessing avatar Jun 04 '18 06:06 rhessing