Repcached is patch set which adds data replication feature to memcached.
100K+
Repcached is patch set which adds data replication feature to memcached.
You can read more at: http://repcached.lab.klab.org/
It could be used successfully to achieve high availability for memcached.
If you have 2 servers with working network connection configured as below:
| Hostname | IP Address |
|---|---|
| srv_A | A.A.A.A |
| srv_B | B.B.B.B |
You could start repcached as following:
On srv_A:
docker run -d --restart unless-stopped --name=repcached -e SLAVE="B.B.B.B" -p 127.0.0.1:11211:11211 -p 11212:11212 oktec/repcached:tag
On srv_B:
docker run -d --restart unless-stopped --name=repcached -e SLAVE="A.A.A.A" -p 127.0.0.1:11211:11211 -p 11212:11212 oktec/repcached:tag
On srv_A:
telnet 127.0.0.1 11211
set Test 0 100 10
JournalDev
You should see a message: STORED
On srv_B:
telnet 127.0.0.1 11211
get Test
You should get a response:
VALUE Test 0 10
JournalDev
END
Additionally, you could try to set key/value on srv_B and get it from srv_A.
git clone https://github.com/herc1/repcached.git
docker build -t oktec/repcached:tag .
Content type
Image
Digest
Size
76.9 MB
Last updated
almost 7 years ago
docker pull oktec/repcached