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 80D8A11B25 for ; Tue, 8 Jul 2014 04:07:21 +0000 (UTC) Received: (qmail 68874 invoked by uid 500); 8 Jul 2014 04:07:20 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 68819 invoked by uid 500); 8 Jul 2014 04:07:20 -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 Delivered-To: moderator for user@zookeeper.apache.org Received: (qmail 89114 invoked by uid 500); 8 Jul 2014 01:39:55 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of sasi.jarch@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Mon, 7 Jul 2014 18:39:30 -0700 (PDT) From: Sasi To: zookeeper-user@hadoop.apache.org Message-ID: <1404783570228-7580099.post@n2.nabble.com> Subject: Can a zookeeper client be made to influence the client-to-server heartbeats? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org In distributed systems that uses Apache Zookeeper for co-ordination, each component is a client to the Zookeeper server, and it instantiates a zookeeper instance, which in the background is sending heartbeats to the zookeeper server. I understand that the time interval for heartbeat communication is configurable. In situations when the "component" itself goes into a "faulty" state but the "heartbeats" to zookeeper is good and unaffected, proper state of this component is not communicated to the rest of the components in the system. Is it possible out of the box, to influence the heartbeat mechanism - typically by passing a "status reporting function" to the zookeeper instance - to "validate" the status of the component before sending the heartbeat ? -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/Can-a-zookeeper-client-be-made-to-influence-the-client-to-server-heartbeats-tp7580099.html Sent from the zookeeper-user mailing list archive at Nabble.com.