Re: memcached failover solution?

2009-10-22 Thread Adi
Hi Henrik, could you please tell me how can i remove the dead node from the pool, or can you provide me any documentation of BeIT memcached client so that i understand it easily. Actually, In BeIT client there is method to detech the status of the host, i want to remove it from the socket pool

Re: memcached failover solution?

2009-10-22 Thread Henrik Schröder
First, check SocketPool.cs, around line 160. That's the code that fires if it failed to open a socket. You want to check if deadEndPointSecondsUntilRetry is larger than some sort of threshhold (A minute or so, you don't want to remove servers the first time they fail, you can have short temporary

Re: memcached failover solution?

2009-10-20 Thread Henrik Schröder
All memcached clients handle the distribution of items between servers, you just need to tell it which machines are in the pool, and never worry about where specific items end up. Normally you really shouldn't worry about that sort of thing. Good memcached clients offer you ways to choose failover

Re: memcached failover solution?

2009-10-20 Thread Steve Webb
in a 10+ server pool. - Steve On Tue, 20 Oct 2009, Henrik Schröder wrote: Date: Tue, 20 Oct 2009 14:13:23 +0200 From: Henrik Schröder skro...@gmail.com Reply-To: memcached@googlegroups.com To: memcached@googlegroups.com Subject: Re: memcached failover solution? All memcached clients handle

Re: memcached failover solution?

2009-10-19 Thread Henrik Schröder
On Mon, Oct 19, 2009 at 03:34, dormando dorma...@rydia.net wrote: http://blogs.sun.com/trond/date/20090625 ^ client side replication. I like this and feel it's more powerful, since tt scales past two severs implicitly, and you can enable/disable it per key or key type. So instead of

Re: memcached failover solution?

2009-10-19 Thread Adi
Thanks to All, In a web farm where two memcached server is hosted separately, when one server is down could all request served from server 2 automatically or we need to remove the dead node explicitly from the client? I have tested a scenario: Key1, Data1 Cached on Server1 Key2, Data2 Cached

Re: memcached failover solution?

2009-10-19 Thread Adam Lee
On Mon, Oct 19, 2009 at 6:00 AM, Henrik Schröder skro...@gmail.com wrote: How it works depends on which client you use. If you use the BeITMemcached client, when one instance goes down it will internally mark it as dead, start writing about it in the error log, and all requests that would end

Re: memcached failover solution?

2009-10-19 Thread dormando
On Mon, Oct 19, 2009 at 03:34, dormando dorma...@rydia.net wrote: http://blogs.sun.com/trond/date/20090625 ^ client side replication. I like this and feel it's more powerful, since tt scales past two severs implicitly, and you can enable/disable it per key or key type. So instead of

Re: memcached failover solution?

2009-10-19 Thread István
well this is a bit like mixing together couple of things, i thing if you are having multiple memcached instance you have to handle it from your app or write a proxy what checks the memcached servers and distributes the load and removing the dead one from the pool like load balancers do with http

Re: memcached failover solution?

2009-10-18 Thread Ren
On Oct 18, 12:22 am, moses wejuli m.wej...@googlemail.com wrote: Thanks Dustin. I guess what i'm really askin is: would you recommend using memcached for session management in PHP.. the PHP extension for memcache has got a facility for manging sessions. This behaviour (using memcache for

Re: memcached failover solution?

2009-10-18 Thread Ren
On Oct 18, 1:27 pm, Ren jared.willi...@ntlworld.com wrote: On Oct 18, 12:22 am, moses wejuli m.wej...@googlemail.com wrote: Thanks Dustin. I guess what i'm really askin is: would you recommend using memcached for session management in PHP.. the PHP extension for memcache has got a

Re: memcached failover solution?

2009-10-18 Thread Henrik Schröder
On Sun, Oct 18, 2009 at 00:47, dormando dorma...@rydia.net wrote: Anyone interested in getting one of the windows clients to support libmemcached, or at least the same replication method that the windows client uses? What do you mean? What would be required for this? /Henrik Schröder

Re: memcached failover solution?

2009-10-18 Thread dormando
On Sun, 18 Oct 2009, Henrik Schr?der wrote: On Sun, Oct 18, 2009 at 00:47, dormando dorma...@rydia.net wrote: Anyone interested in getting one of the windows clients to support libmemcached, or at least the same replication method that the windows client uses? What do

Re: memcached failover solution?

2009-10-17 Thread moses wejuli
Hi Henrick, When you say: If your application requires that all memcached instances are up and running all the time, it's pretty likely that you are doing something wrong, that you are using memcached in a way it was not intended for. Does this mean you cannot use memcache for session

Re: memcached failover solution?

2009-10-17 Thread moses wejuli
Thanks Dustin. I guess what i'm really askin is: would you recommend using memcached for session management in PHP.. the PHP extension for memcache has got a facility for manging sessions. This behaviour (using memcache for session mgmt) can be turned on in the PHP ini file. I know/believe C is

Re: memcached failover solution?

2009-10-17 Thread Dustin
On Oct 17, 4:22 pm, moses wejuli m.wej...@googlemail.com wrote: Thanks Dustin. I guess what i'm really askin is: would you recommend using memcached for session management in PHP.. the PHP extension for memcache has got a facility for manging sessions. This behaviour (using memcache for

Re: memcached failover solution?

2009-10-17 Thread moses wejuli
the article is very good, incisive and convincing -- in summary, it requires that you treat sessions as any other data -- stored in the DB, and cached in m/cache, blah blah blah i suppose i'll have to implemnt it first before i can come up with better questions -- for the time being though, many

memcached failover solution?

2009-10-16 Thread Adi
Hi, I am using memcached on windows server 2003 in a web cluster environment setup through NLB (Network load balancer) and using two different memcached server for caching, using BeIT Memcached client. I want to know if memcached doesn't provide failover explicitly than is there any way to

Re: memcached failover solution?

2009-10-16 Thread Henrik Schröder
Hi Adi, Why do you want failover? It's just a cache, so your application should be able to run ok if part of the cache cluster is unavailable, you would experience a slightly higher cache miss ratio. If your application requires that all memcached instances are up and running all the time, it's