zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Bate Boerop <robin.bateboe...@userevents.com>
Subject 'Move' operation for Zookeeper
Date Thu, 15 Nov 2012 19:14:21 GMT
Zookeeper users,

Has anyone investigated the implementation of a 'move' operation in Zookeeper?

For example, suppose that a node '/x/y/z' has 50 Ko of data associated with it. A client wants
the same data to be found only in node '/a/b/c'. The client must:
1. Get the contents of '/x/y/z', incurring a transfer of the 50 Ko of data from ZK.
2. Create node '/a/b/c' with the same 50 Ko of data, incurring another transfer of it.
3. Delete node '/x/y/z'.

It would be simpler to issue a 'move' command: move('/x/y/z', '/a/b/c'). This would also be
much faster.

--
Robin Bate Boerop

Mime
View raw message