Skip to content

Replication

ideawu edited this page May 2, 2013 · 22 revisions

SSDB Replication Hirarchy

Master-Slave(Stable)

1

Master Config:

server:
	ip: 127.0.0.1
	port: 8888
replication:

Slave Config:

server:
	ip: 127.0.0.1
	port: 8889
replication:
	slaveof:
		ip: 127.0.0.1
		port: 8888

Master-Master(Beta)

2

Master Config:

server:
	ip: 127.0.0.1
	port: 8888
replication:
	slaveof:
		type: mirror
		ip: 127.0.0.1
		port: 8889

Master2 Config:

server:
	ip: 127.0.0.1
	port: 8889
replication:
	slaveof:
		type: mirror
		ip: 127.0.0.1
		port: 8888

Master-Master-Slave(Beta)

3

Slave Config:

server:
	ip: 127.0.0.1
	port: 8890
replication:
	slaveof:
		ip: 127.0.0.1
		# or 8889
		port: 8888
Clone this wiki locally