I have successfully installed twemproxy and I can easily set data in redis through twemproxy , but when I have tried to fetch data from server it always take from 1st one from list which I mentioned in yml file .so how to fetch data from other server as well ? can you help me?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Could you describe what you are trying to accomplish in a bit more detail? Is the cluster being used as a data store or for caching? It would likely help us answer you better.
twemproxy will partition your data, splitting it among multiple Redis instances. If you are trying to fetch the same key from Redis through twemproxy repeatedly it will come from the same node. This article from the Redis documentation is a good explanation of partitioning.