Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C746C1844F for ; Wed, 27 Jan 2016 16:56:10 +0000 (UTC) Received: (qmail 90506 invoked by uid 500); 27 Jan 2016 16:56:00 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 90453 invoked by uid 500); 27 Jan 2016 16:56:00 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 90441 invoked by uid 99); 27 Jan 2016 16:56:00 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 16:56:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B3C1E180638 for ; Wed, 27 Jan 2016 16:55:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XNrU9fT1QUdx for ; Wed, 27 Jan 2016 16:55:49 +0000 (UTC) Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 5C7E343F5E for ; Wed, 27 Jan 2016 16:55:44 +0000 (UTC) Received: by mail-pf0-f181.google.com with SMTP id n128so7480564pfn.3 for ; Wed, 27 Jan 2016 08:55:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=G5fZszB8PPaLHS9t45t80K5YjFdhtv58deFAvNfF7Tg=; b=hoeoQwKqaH7xnNo2Sv4FwdyeR89V+X6nAjhuUDRfhhTBpn/ZMcw9azzIN4Z1JxYqOw W0wsGq+BYiSpnmWY46oCrG5ct8oSQBQ7GWVtRJ7EcsuRwLNGvfbSlDcUUFm1Nh8cNHyH Seug1YV8M0zRIJ/ywXWBMdWcfKX6UVriqEe24qrwm+Wg6jZkQ6lrh6G0H423T5jDIZxH LvZZUnMMDYxjb+N8/wtbsv9qrWaHfJ7Y/JX/X9kuX4v9R0Y9XonfO81ug+KxfPVwC/Zv kXdg7I3JOy5N6V0MjJ7nZDhrrBe7k5B2C4RSQr2Z/V+8+8I3ml+QTfxh1qz2QC1LtoIj PVzQ== X-Gm-Message-State: AG10YOQkK4m1DW7abvlhQBmcNkt9G4ohK8C2UIpDk9doVru07YTIvgszCyFGA2yp3LWHbw== X-Received: by 10.98.13.68 with SMTP id v65mr43463582pfi.54.1453913737674; Wed, 27 Jan 2016 08:55:37 -0800 (PST) Received: from ?IPv6:2601:647:4a00:8e5d:f5bc:576f:b1b1:f525? ([2601:647:4a00:8e5d:f5bc:576f:b1b1:f525]) by smtp.gmail.com with ESMTPSA id v2sm10237543pfi.93.2016.01.27.08.55.36 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jan 2016 08:55:36 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: ping delay time From: Flavio Junqueira In-Reply-To: Date: Wed, 27 Jan 2016 08:55:34 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7B6B4E76-C2B6-4767-B127-48B8ABB624E7@apache.org> References: To: user@zookeeper.apache.org X-Mailer: Apple Mail (2.2104) Client sessions are pinged and the frequent pings indicate that the = session timeout is set too short. The server will have the right timeout = (min 2x tickTime), but it is possible that the client isn't setting it = right, but it is a guess. -Flavio > On 27 Jan 2016, at 08:50, Sameer Rahmani wrote: >=20 > Hmmmm so it abnormal. I'll dig more. But is there any related feature = in zk? > On Jan 27, 2016 7:54 PM, "Flavio Junqueira" wrote: >=20 >> Hi there, >>=20 >> We don't really support this clojure client, so I'm not sure why it = can be >> sending this many pings. Perhaps there is an issue with the session = timeout >> value it is keeping? >>=20 >> -Flavio >>=20 >>> On 27 Jan 2016, at 05:00, Sameer Rahmani = wrote: >>>=20 >>> Hi, >>>=20 >>> I'm using clojure client of zookeeper, after connecting to zk = server, my >>> client keep pinging zk server >>> instantly. here is my debug log: >>>=20 >>>=20 >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Reading reply >>> sessionid:0x1528182dd040000, packet:: clientPath:null = serverPath:null >>> finished:false header:: 1,3 replyHeader:: 1,51,0 request:: = '/mary,F >>> response:: s{6,6,1453725820930,1453725820930,0,15,0,0,0,15,49} >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Reading reply >>> sessionid:0x1528182dd040000, packet:: clientPath:/mary/instance- >>> serverPath:/mary/instance- finished:false header:: 2,1 = replyHeader:: >>> 2,52,0 request:: '/mary/instance-,,v{s{31,s{'world,'anyone}}},2 >>> response:: '/mary/instance-0000000015 >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Reading reply >>> sessionid:0x1528182dd040000, packet:: clientPath:null = serverPath:null >>> finished:false header:: 3,8 replyHeader:: 3,52,0 request:: = '/mary,F >>> response:: >>>=20 >> = v{'instance-0000000014,'instance-0000000005,'instance-0000000013,'instance= -0000000004,'instance-0000000012,'instance-0000000007,'instance-0000000006= ,'instance-0000000011,'instance-0000000001,'instance-0000000000,'instance-= 0000000003,'instance-0000000015,'instance-0000000002,'instance-0000000010,= 'instance-0000000008,'instance-0000000009} >>> [INFO] mary.sunny.core: Elect 'instance-0000000000' as new leader. >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>> [DEBUG] org.apache.zookeeper.ClientCnxn: Got ping response for = sessionid: >>> 0x1528182dd040000 after 0ms >>>=20 >>>=20 >>> how can I set a delay for each ping ? >>=20 >>=20