[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972810#action_12972810
 ] 

Flavio Junqueira commented on ZOOKEEPER-711:
--------------------------------------------

To implement this feature, we would need to have changes in two places:

# In Bookie.java, we would need to add rack information to the ephemeral znode 
that represents the bookie (instantiateZookeeperClient);
# In BookieWatcher, we would need to select bookies based upon the information 
on the znodes.

I can see two ways of making this work:

# Extend the API so that apps can tell BookKeeper when to use rack information;
# Let the BK client detect automatically when there is information in the 
znodes, and use it.

The drawback I see with the second approach is that this mechanism limits us to 
using rack information only. If we ever want to write information to the bookie 
znodes that is not rack location, then we will have to do redo the mechanism. 
My preference is to enable different selection functions and let the app decide 
which method to use.

> Bookie rack awareness
> ---------------------
>
>                 Key: ZOOKEEPER-711
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-711
>             Project: ZooKeeper
>          Issue Type: New Feature
>          Components: contrib-bookkeeper
>            Reporter: Flavio Junqueira
>
> This feature introduces rack awareness to the selection of bookies. The 
> general idea is to add information about racks to the znodes representing 
> bookeis and use that information to select bookies.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to