To learn about distributed caching, I have a personal idea of creating multiple Docker images in Ubuntu. Redis is then started for each mirror. Is it possible to simulate real distributed data backup? Don't know the idea right?
Just contacted Docker and Redis. I hope you will give us some advice. Thank you
Reply content:
To learn about distributed caching, I have a personal idea of creating multiple Docker images in Ubuntu. Redis is then started for each mirror. Is it possible to simulate real distributed data backup? Don't know the idea right?
Just contacted Docker and Redis. I hope you will give us some advice. Thank you
You just need to create a mirror, you can set up multiple instance, when you start, using different ports to map out the effect of the cluster can be simulated.
docker run --name instance1 –p 16379:6379 –i –t redisdocker run --name instance2 –p 26379:6379 –i –t redis
Multiple containers should be built on a redis image
The Docker container uses the Network bridge by default
Host access container requires container exposure/map port, and container can access each other
But I didn't play the Redis cluster. When I play Redis, Redis is still 2.8.
Just to learn, directly on the local machine simulation can be, multiple redis.conf files in different ports can be developed.