How to configure zones on cluster.xml?

101 views
Skip to first unread message

BJ2

unread,
Feb 28, 2012, 2:18:26 AM2/28/12
to project-voldemort
I'm trying to configure 3 zones on cluster.xml. I've read your sample
like following.
<zone>
<zone-id>0</zone-id>
<proximity-list>1</proximity-list>
<zone>
<zone>
<zone-id>1</zone-id>
<proximity-list>0</proximity-list>
<zone>

I can't understand what proximity-list's function. Could you let me
know how to use proximity-list and its meaning(work or function)?

I want to configure my cluster.xml like the following.
<zone>
<zone-id>0</zone-id>
<proximity-list>0</proximity-list>
<zone>
<zone>
<zone-id>1</zone-id>
<proximity-list>1</proximity-list>
<zone>
<zone>
<zone-id>2</zone-id>
<proximity-list>2</proximity-list>
<zone>
Can I use this configuration?

Regards,

ctasada

unread,
Apr 30, 2012, 9:14:46 AM4/30/12
to project-...@googlegroups.com
Up to my understanding the proximity-list help to define the access priority to an specific node.

Your example shows 3 zones with 1 node per zone. So I don't really a benefit using zones in this scenario. The zones make sense when you have multiple nodes per zone-id, so you can avoid (reduce) unneeded traffic to different zones (data centers)

I hope it helps

Chinmay Soman

unread,
Apr 30, 2012, 1:14:17 PM4/30/12
to project-voldemort
Carlos speaks the truth ! :)

Having one node per zone is kinda bad. A zone has traditionally been
considered to be in a separate data centre (although not necessarily
so).
To clarify: Proximity list defines the ordered list of zones based on
the physical proximity to the current zone (of course it has to be
manually specified. We do not have a provision to calculate this on
the fly - which is possibly btw).

It is used if your routing strategy is zone aware "zone-routing" and
"zone-count-reads" or "zone-count-writes" is configured for your
store. In this case, the voldemort client will make sure the reads /
writes are satisfied for the zone(s) as specified in the proximity
list, in addition to the current zone.

It is also used in the hinted-handoff if the strategy used is
"proximity-handoff". Check the ProximityHandoffStrategy class.

Thanks,
C

Carlos Tasada

unread,
May 1, 2012, 1:28:30 AM5/1/12
to project-...@googlegroups.com
Great explanation Chinmay!

--
You received this message because you are subscribed to the Google Groups "project-voldemort" group.
To post to this group, send email to project-...@googlegroups.com.
To unsubscribe from this group, send email to project-voldem...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/project-voldemort?hl=en.


Reply all
Reply to author
Forward
0 new messages