Re: Getting hostnames of servers where a particular key is stored when ketama hashing and replication is enabled

2018-08-02 Thread Om Kale
Yes. I do. Oh..ok. You are saying to do it the other way around, instead of passing a key and checking which server it belongs to, query every server in the list for a given key? I could that..not very optimal..but a workaround. Why I needed a way to get a server list where a particular key

Re: Getting hostnames of servers where a particular key is stored when ketama hashing and replication is enabled

2018-08-02 Thread dormando
You have the list of all servers right? Just query them individually? if it's just for debugging it should take you a few minutes to code soemthing yup; you could even use a bash script. On Thu, 2 Aug 2018, Om Kale wrote: > The reason I am trying to do this is for better debugging. In case

Re: Getting hostnames of servers where a particular key is stored when ketama hashing and replication is enabled

2018-08-02 Thread Om Kale
The reason I am trying to do this is for better debugging. In case something goes wrong in the system and I am unable to get the value stored for a particular key, I can go ahead and use this functionality to understand on which server that particular key is stored. Also, the second question about

Re: Getting hostnames of servers where a particular key is stored when ketama hashing and replication is enabled

2018-08-02 Thread dormando
Why are you trying to do this? That's generally a bad sign, the replication is for redundancy. if you're just trying to confirm it works, you can do a brute force search for the key On Thu, 2 Aug 2018, Om Kale wrote: > Hi All,I have enabled replication (using --NUMBER_OF_REPLICAS) and ketama >

Getting hostnames of servers where a particular key is stored when ketama hashing and replication is enabled

2018-08-02 Thread Om Kale
Hi All, I have enabled replication (using --NUMBER_OF_REPLICAS) and ketama hashing. This means, I will have replicas of keys stored on different servers memntioned in my server list. My question is, is there any way of retrieving the list of servers where replicas of a particular key lie, in