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 CD6D3E137 for ; Tue, 15 Jan 2013 18:19:51 +0000 (UTC) Received: (qmail 47585 invoked by uid 500); 15 Jan 2013 18:19:51 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 47521 invoked by uid 500); 15 Jan 2013 18:19:50 -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 31422 invoked by uid 500); 15 Jan 2013 16:23:43 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of yasincelik27@gmail.com) Date: Tue, 15 Jan 2013 08:23:16 -0800 (PST) From: Yasin To: zookeeper-user@hadoop.apache.org Message-ID: <1358266996232-7578405.post@n2.nabble.com> Subject: Implementing DNS-like service using ZooKeeper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am relatively new to Zookeeper. I run it as a single standalone server on my laptop and tried it with 3 server-cluster on a private cloud. And tried some sample codes. I want to develop a service acts like a DNS. It will basically keep IPs of thousands of host along with some additional information such as Rack ID. Let's call this service zkDNS. I am at the design phase. I want design the system as good as possible so that I will not have to make so too much changes on the way. I have a couple of questions: 1- Can I run zkDNS and ZooKeeper on the same physical machines at the same time? This will give me localization advantage. zkDNS process will connect to ZooKeeper service residing on the same machine. There will not be network traffic. 2- zkDNS will store maybe hundreds of thousands of IP addresses and will serve these hosts asking for some information about other hosts. How should I implement this schema? Should I keep IP addresses in ArrayLists and create a znode on Zookeeper for every IP address? This does not seem to be a good design. I will need to search the zkDNS host list for every request. Therefore I want to keep IP addresses in sorted ordered. How can I start this project by taking advantages of ZooKeeper service? I need a starting point/approach the problem. Any idea/comment/link is appreciated. Best Yasin -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/Implementing-DNS-like-service-using-ZooKeeper-tp7578405.html Sent from the zookeeper-user mailing list archive at Nabble.com.