Question

Unable to fetch data from multiple redis instances

  • Posted October 30, 2014

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.