-
Notifications
You must be signed in to change notification settings - Fork 54
this is more of a question, not an issue - how to install and manage multiple nodes ? #13
Comments
Currently there are 2 issues with multi-server (Docker Swarm) setups:
Basically, these images are aimed to provide flawless automatic clusterization with zero-configuration in simplest cases, namely you execute Any contributions are welcomed:) |
Thank you so very much for such detailed reply. i am a little confused with 1. and 2. - almost seems like the contradict each other. maybe I didn't ask the questions correctly, let me try to re-phrase it: Your images allow to deploy multiple instances of the same service-daemon on the same machine (ie. physical node). It looks very cool and easy to do this but I'm trying to understand the benefit of have multiple NGINX or MYSQL instances on the same Node. Is there a reason for having 2 nginx daemons running on the same node, or is there a performance benefit of having multiple mysql daemons running on same node? I would imagine that running multiple mysql will in turn decrease amount of resources that can be dedicated to each instance of mysql, make it "less-performant"? and the answer 2. seems like it's a part to the answer of the 1. or did i misunderstand it? and in 5. - when you say create own image, i'm assuming you mean docker commit or do you actually mean docker save ? would that render my image to be no longer upgradable from from yours? Ie. you mentioned that there will be some fixes to a couple of problems and I would like to be able to add all your fixes to my already running cluster. Is that even an option with Docker? (as i mentioned i'm still a super new to docker) |
I do not think there is any reason to have 2 instances on the same node on the same hardware. It is possible (you can even run multiple VMs, combine them in Docker Swarm cluster and setup cross-server replication), but not necessary should be done. The reasonable use case might be 2 MariaDB instances with very different configs and residing on different physical drives within the same server. It cannot be deployed right now out of the box with Docker 1.10. With Docker 1.9 you can, for instance, create MariaDB cluster. But for Nginx you'll need to manually prepare volumes using distributed file system (Docker docs). Ceph image in this repository aims to provide Cephfs distributed file system for these container that will just work out of the box across multiple physical hosts, but it is not finished yet (it works with Docker 1.9 though). No, I mean write your own Dockerfile that will extend existing image from this repository, just like images from this repository extends others (MariaDB image is based on official MariaDB image and so on). When Docker 1.10 compatibility will be implemented and Ceph image finished - you'll be able to run multi-host cluster as simple as running |
I'm super green when it comes to docker, we currently run all production with chef but containerization was a good enough reason to consider switching over to docker.
When i found your repo - it made it a lot more obvious that it is so much easier to configure and manage things but I'm having a bit of a difficulty understanding how to deploy this setup over multiple nodes (all dedicated servers). Is it even possible?
Say we want to have 2 of MYSQL + REDIS servers and 2 separate web servers
we currently also have 2 haproxy load balancers (also dedicated servers)
I couldn't understand a few things:
thank you very much.
The text was updated successfully, but these errors were encountered: