Report this

What is the reason for this report?

Unable to fetch data from multiple redis instances

Posted on 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?



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.