Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.76 KB

federation.md

File metadata and controls

68 lines (52 loc) · 1.76 KB

Federation/Zones

The Holy Grail.

I searched to fgure out really what this means in Kazoo.

Kazoo uses AMQP and BigCouch so Federation/Zones is a mix of what is defined in the other projects.

Federation appear to rest on a few paramters of bigcouch

  • BigCouch databases are governed by 4 parameters
    • Q: Number of shards
    • N: Number of redundant copies of each shard
    • R: Read quorum constant
    • W: Write quorum constant

Consider the following in determining how you will define these paramters.

Examples

  • Single Server install

[cluster] q=1 r=1 w=1 n=1


* 2600hz setup
  * https://github.com/2600hz/kazoo-configs/blob/master/bigcouch/local.ini#L19-L23

[cluster] q=3 r=2 w=2 n=3


From IRC

zones ensures data is replicated to multiple zones, typically defined geographically mc_ so you'd have two zones, east and west, defined to group servers in la and nyc mc_ the z param would then ensure at least one of the n replications would happen in east and west mc_ so you would have geo-redundancy mc_ of course, zone names are arbitrary so you could map them to whatever you want mc_ but typically people use the datacenter, country, etc as the zone name


* Information on setting up zones
  * https://groups.google.com/forum/#!searchin/2600hz-users/zone/2600hz-users/sclhrzkA1Sw/mPl6eaj2rAMJ
  * 
  * https://github.com/2600hz/kazoo/blob/305053c762795ba279028c82c5e83b25f4d8901e/doc/installation.md