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 8708010912 for ; Thu, 2 May 2013 00:48:58 +0000 (UTC) Received: (qmail 79902 invoked by uid 500); 2 May 2013 00:48:57 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 79840 invoked by uid 500); 2 May 2013 00:48:57 -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 79832 invoked by uid 99); 2 May 2013 00:48:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 00:48:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mutsuzaki@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 00:48:51 +0000 Received: by mail-bk0-f52.google.com with SMTP id q16so26555bkw.11 for ; Wed, 01 May 2013 17:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ktthHr0B1ExCv2DOY+dt17JN3EJkqGLihDhDbVCE7AQ=; b=Q+tiXnlySVb2ROlQzyxGcN3Wp2zOHA0YEVypamUQDnHwH5VMTcziqQUUkT0OCC4MPe NODv4wMY3jO2VGJEd8hjqWn6t6BoGJ6VifafZNCw6Y51zKRJVBldjw5CHgurAmyuSfwR u5BwORNm0YK9FjzhEWZxZIFVIicy24SdSHeI/Bdo2NHjlde1NjE5eGzRIJD/I3REnYO6 oVEV/JbYWKrCTCi/zvKTRUx1+iXAv4iEWZX53DWDUNl4PcVJ9ePZN9v2dWtpe06Teuhy JRu+XF0RnZLTdpI2PD4y16fpVWSkvPQfY1hT7LZGaS3iDyIxtOQ2Y+UsQ4EnV8WbzImf LKVQ== MIME-Version: 1.0 X-Received: by 10.205.41.199 with SMTP id tv7mr1350234bkb.97.1367455711241; Wed, 01 May 2013 17:48:31 -0700 (PDT) Reply-To: michi@cs.stanford.edu Sender: mutsuzaki@gmail.com Received: by 10.204.49.18 with HTTP; Wed, 1 May 2013 17:48:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 May 2013 17:48:31 -0700 X-Google-Sender-Auth: CFbUYbOLCtrjXW0Y2GluGCIHrgw Message-ID: Subject: Re: Client host selection? From: Michi Mutsuzaki To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org C client has zoo_deterministic_conn_order() to make the connection order deterministic. We can add a similar feature to Java client. Owen, do you want to open a JIRA for this? --Michi On Wed, May 1, 2013 at 5:40 PM, Benjamin Reed wrote: > no it will connect randomly. we don't really have a way to specify > preference or weight. it would be a nice feature to add though. > > ben > > > On Wed, May 1, 2013 at 5:26 PM, Owen Kim wrote: > >> Is the client configurable on which host it tries to connect to when I give >> it the host list? Will it perhaps try deterministically in order? >> Specifically, I'd like it to favor ZK hosts in the same DC. >>