Score:0

What are the risks in running single Zookeeper instance in production?

id flag

I'm considering using Zookeeper to manage shared configuration across multiple services that live on a single application server. Usage would be very low volume, mostly reads. My production system uses 2 VMs: one application server and one database server.

Zookeeper docs suggest that, in production, you want an ensemble of at least 3 instances.

I have two obvious options:

  1. Install two Zookeeper instances on one of the two VMs, and one on the other.
  2. Use only one Zookeeper instance.

If I only use one instance, and I can live with some downtime if Zookeeper happens to go down (which I would hope only occurs rarely), are there serious risks with only using one instance? When maintaining the server I'd be bringing Zookeeper down regardless.

There is the possible issue of file corruption in the data folder. Are additional instances required to recover in this scenario? Or can one simply delete the most recent snapshot and fall back to the previous one (with possible data loss)?

Can anyone speak to the risks involved? How bad an idea is this?

djdomi avatar
za flag
Does this answer your question? [Can you help me with my capacity planning?](https://serverfault.com/questions/384686/can-you-help-me-with-my-capacity-planning)
Remi Despres-Smyth avatar
id flag
@djdomi No. My question isn't related to capacity or capacity planning; a single server would have plenty of resources for the use I'm going to put it to. But if I run Zookeeper on a single server - against their recommendations - there are certainly risks to that. I'm looking for info regarding what those risks are.
djdomi avatar
za flag
but even that, opinion based questions are also off topic ;)
Remi Despres-Smyth avatar
id flag
@djdomi Not looking for opinions, looking for people familiar with the project who can tell me what can go wrong if this is done. I would hope possible failure modes to be known to people who know the project well.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.