How do clients know which server to get a particular key from?

57 views
Skip to first unread message

David Kincaid

unread,
Sep 28, 2013, 8:18:29 AM9/28/13
to elephan...@googlegroups.com
One thing that I haven't been able to figure out yet is how to make a client aware of which EDB host the shard containing a particular key is on. I understand that the client can get a key from any of the server nodes and the server will fetch the key from the other servers if it doesn't have the key locally. However, wouldn't it be better if the client connected to the server that had the key locally? Is there any provision for this in EDB?

Thanks,

Dave

Soren Macbeth

unread,
Sep 28, 2013, 11:00:13 AM9/28/13
to elephan...@googlegroups.com
No, there isn't any way for a client to know ahead of time which server is holding which key in EDB. 


--
You received this message because you are subscribed to the Google Groups "elephantdb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elephantdb-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
http://about.me/soren

David Kincaid

unread,
Sep 28, 2013, 4:53:27 PM9/28/13
to elephan...@googlegroups.com
So how do people configure their clients in production? Do you have all clients hit the same server and let that server get the keys/values from all the other servers every time or somehow try to load balance the clients between servers? Or doesn't it really seem to matter?

Soren Macbeth

unread,
Sep 28, 2013, 10:37:59 PM9/28/13
to elephan...@googlegroups.com
I'd recommend having the client connect to a reverse proxy or something that will load balance the request our amongst the servers in the cluster evenly (this is what I do). 
Reply all
Reply to author
Forward
0 new messages