On Thu, Oct 30, 2008 at 9:26 PM, TheJonathan <[EMAIL PROTECTED]> wrote:

>
> I think I get it.  So if I'm passing in the array of memcached IPs via
> a web.config, make sure they are in the same order on all load-
> balanced machines.  e.g.
> web1 = localhost, web2
> web2 = web1, localhost
>

As long as you use the same names everywhere you will be fine. If you were
using my client, it can take either "host", "ip", "host:port" or "ip:port"
when you setup the list, and it will then use those strings that you supply
as the basis for the server mapping algorithm, so those strings have to be
the same in all clients. You could for example configure it with
"localhost", "localhost:11211" and "127.0.0.1", and it would treat that as
three different servers, although the lookup for all three returns the same
ip and port.

@Kevin: Is the hashing algorithm you mentioned something I would have
> to implement myself, or a feature?  I was going to use the enyim
> Memcached client in .NET 2.0 http://www.codeplex.com/EnyimMemcached/
> but I could be swayed.


This is not the .Net client you are looking for, you want use my client:
http://code.google.com/p/beitmemcached. You are feeling very sleepy, and
very swayed! :-)

Yes, all memcached clients implement a hashing algorithm for you, that's not
something you need to worry about. Some clients let you plug in your own in
the rare event that you would need that.


/Henrik Schröder

Reply via email to