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 libme
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
> h
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
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 someth
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 belongs
Hey,
Additionally, I see no example usage of the memcached_server_by_key API to
get the server where a key is stored.
When I try to print out the value contained in it in my c code, I get
dereferencing error:
memcached_return_t rc2;
memcached_instance_st* r_server;
r_server = memcached_server