zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Sharma <gshx.g...@gmail.com>
Subject Re: Zookeeper is always CP or AP in terms of CAP theorem
Date Mon, 19 Jun 2017 19:02:20 GMT
For typical Zk use-cases, Consistency is non-negotiable; so CP. That said,
typically A is not black/white even if you are working with a CP system,
you can get a degree of availability. For prod use-cases, instead of a 3
node cluster, try to setup a 5 node cluster and write some simple
scripts/automation to heal the cluster on failures (read the admin docs) -
https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#sc_supervision You
can scale reads via observer nodes but you cannot (and should not) accept
writes without a quorum.


On Mon, Jun 19, 2017 at 11:47 AM, Kaushal Shriyan <kaushalshriyan@gmail.com>
wrote:

> Hi,
>
> I am reading the CAP theorem and zookeeper either satisfies CP or AP. I am
> not sure how do we take care of Availability property or Consistency
> property. Any examples to understand it better. Please help me understand
> if i am completely wrong?
>
> Thanks in Advance.
>
> Regards,
>
> Kaushal
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message