[Zope-dev] Fwd: Patch for zc.zk
Dave Cahill
dcahill at midokura.com
Wed May 15 01:12:48 UTC 2013
Hi Jim,
Thanks for the response and advice.
My use case is purely export / dump (including ephemeral nodes) and load -
I looked at kazoo, but it didn't seem to provide that functionality, where
zc.zk did.
Do you know where the dump/load functionality would fit in future plans? Or
if there's a better option for dump and load? I tried a few options
(zktreeutil crashed due to long strings, guano had issues with long file
names etc).
> Maybe. Not sure nodes with spaces in the names is a good idea.
You're right that as a client, putting spaces in node names is not a great
idea because many tools don't handle them. But I figure if the client has
already written nodes with spaces to Zookeeper, the dump tool should dump
them that way instead of failing. Kind of like the robustness principle of "Be
conservative in what you send, be liberal in what you accept", the client
shouldn't be creating nodes with space names, but the tool will be more
robust if it can handle that. As far as I can tell from the docs, spaces
are not illegal in ZK path names.
Either way, that may be irrelevant if I should be looking elsewhere for
dump and load functionality - interested to hear your take.
Thanks again for the detailed reply,
Dave.
On Tue, May 14, 2013 at 9:24 PM, Jim Fulton <jim at zope.com> wrote:
> On Tue, May 14, 2013 at 6:02 AM, Dave Cahill <dcahill at midokura.com> wrote:
> > Hi,
> >
> > Reposting to the zope-dev list - does anyone know if zc.zk is still
> active?
>
> Yes, but I have lots of other projects. Don't expect instant responses.
>
> >
> > I have another patch to fix importing nodes with spaces in the name, but
> > maybe
> > I should just fork it instead and apply my fixes there. :)
>
> Maybe. Not sure nodes with spaces in the names is a good idea.
>
> In terms of plans:
>
> - You should only use zc.zk for it's original use cases of
> service registry and discovery. For anything else, you
> should use kazoo.
>
> - I plan to port zc.zk to kazoo. This hasn't been an urgent priority
> up to now (although it's been getting more so). I was hoping to get a
> student to work on it, but that didn't work out.
>
> If someone is looking for a project, I'd be happy to have volunteers. :)
>
> There are two projects waiting for work:
>
> https://github.com/python-zk/zk.fauxzoo
>
> This is a replaceable mock, similar to what zc.zk
> provides. It should allow application tests with or without
> connection to a ZooKeeper server.
>
> https://github.com/python-zk/zk.service
>
> This is a port of the functionality in zc,zk that's absent from
> kazoo, including the high-level data model and service registry
> and discovery.
>
> Jim
>
> --
> Jim Fulton
> http://www.linkedin.com/in/jimfulton
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20130515/26e28327/attachment.html>
More information about the Zope-Dev
mailing list