mongo-k8s-sidecar icon indicating copy to clipboard operation
mongo-k8s-sidecar copied to clipboard

Is this project still a PoC? Is it production ready?

Open zedtux opened this issue 4 years ago • 10 comments

This issue a little bit more specific than #97:

Is this project still a Proof Of Concept or is it production ready?

zedtux avatar Nov 27 '19 05:11 zedtux

To be honest, I haven‘t seen any progress on this for a while and I would not consider it to be production ready. I personally opted for kubeDB to set up a MongoDB cluster in Kubernetes

mauriceackel avatar Nov 27 '19 08:11 mauriceackel

Thank you @Maurice22 for your input 👍.

I went trough the documentation for MySQL and MongoDB and looking for the replication and automatic failover topics, and as far as I understood it, it is working for a single cluster, but they doesn't seem to have options for a multi-zone or multi data center configuration.

How many Data Center do you have in your config please?

zedtux avatar Nov 27 '19 09:11 zedtux

I'm running on a single data center so unfortunately I don't have any additional information for you here

mauriceackel avatar Nov 27 '19 09:11 mauriceackel

Okay, and what's your plan in the case that DC get down?

zedtux avatar Nov 27 '19 09:11 zedtux

Well, for now this is not our main concern.. However, as far as I understand it, if you have your kubernetes cluster span over multiple sites (i.e. having multiple kubernetes nodes), you don't need to care about it, as the replication and failover is handled by kubernetes itself. In the end, you can see kubernetes as abstraction from the physical hardware, taking care about cases where the hardware fails, I'd say

mauriceackel avatar Nov 27 '19 09:11 mauriceackel

Oh, unfortunately that's not an option because of physical constraints you'll get unstable network between the two sites, and you could end in a split brain issue or cluster freeze in the case masters are impacted.

That's why Kube Federation V2 exists.

zedtux avatar Nov 27 '19 09:11 zedtux

If you'd like to know more about that topic, I recommend you to read that: https://www.percona.com/blog/2018/11/15/how-not-to-do-mysql-high-availability-geographic-node-distribution-with-galera-based-replication-misuse/

zedtux avatar Nov 27 '19 09:11 zedtux

It is unfortunate that most documentation about mongodb and kubernetes uses this project to deploy the statefulset.

max-l-weaver avatar Feb 14 '20 13:02 max-l-weaver

@max-l-weaver - whats wrong with project. Just want to understand if you found anything here which might be of an issue.

rtudo avatar Apr 20 '20 15:04 rtudo

As a PoC for sidecars, it's perfect. As for getting an actual MongoDB replica set going, I initially had success, but as soon as I wanted to do anything more specific, the sidecars were breaking down easily.

I recommend dropping this project for production. https://github.com/mongodb/mongodb-kubernetes-operator is new and prone to bugs as well, but it is a better alternative.

hi-usui avatar Aug 20 '20 22:08 hi-usui