zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jor...@jordanzimmerman.com>
Subject Re: Implementing DNS-like service using ZooKeeper
Date Tue, 15 Jan 2013 18:33:35 GMT
FYI. Curator provides a Service Discovery implementation:


Jordan Zimmerman

On Jan 15, 2013, at 10:19 AM, Yasin <yasincelik27@gmail.com> wrote:

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

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.



View this message in context:
Sent from the zookeeper-user mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message