From e90e694e90851d697289aba8105f7dc8a88763c6 Mon Sep 17 00:00:00 2001 From: Sugu Sougoumarane Date: Fri, 21 Feb 2014 16:54:52 -0800 Subject: [PATCH] Increase tolerance for memcache timeout --- go/vt/tabletserver/cache_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/tabletserver/cache_pool.go b/go/vt/tabletserver/cache_pool.go index f6221e3924..ddc0ce1202 100644 --- a/go/vt/tabletserver/cache_pool.go +++ b/go/vt/tabletserver/cache_pool.go @@ -124,11 +124,11 @@ func (cp *CachePool) startMemcache() { } attempts := 0 for { - time.Sleep(50 * time.Millisecond) + time.Sleep(100 * time.Millisecond) c, err := memcache.Connect(cp.port) if err != nil { attempts++ - if attempts >= 30 { + if attempts >= 50 { cp.cmd.Process.Kill() // Avoid zombies go cp.cmd.Wait()