search

Home  >  Q&A  >  body text

Server architecture - can docker be used to learn server clusters?

I want to learn to install server clusters and database clusters.
At first, I thought about installing a virtual machine on a personal computer, so there are two options:
1. Use Vmware virtual machine in Windows to virtualize 4 Linux environments (2 web servers, 2 Database server),
2. Use Vmware to virtualize two linux environments on Windows (two more Vmware virtual environments will be created for each virtual environment);

Later I felt that docker seemed to be able to achieve my goal. I don’t know which solution is feasible. Please give me some advice! ! !

Or you can provide me with some experience and tell me how to quickly install multiple servers, so that I can learn the knowledge of clusters

PHP中文网PHP中文网2707 days ago1317

reply all(5)I'll reply

  • 某草草

    某草草2017-07-03 11:43:17

    Docker is lighter than a virtual machine. After being made into a mirror, you can easily expand the web server or database server (no configuration required). Generally, it can be started directly with one statement. Just like a container, it can be transported wherever you need it. It’s convenient and fast. It’s worth trying

    reply
    0
  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-03 11:43:17

    It is recommended to use docker. You will know after using it - it is much faster than vmware and saves hard disk space

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-07-03 11:43:17

    Yes, multiple containers on a single machine. But it is not recommended to build docker under windows. To be honest, there are too many pitfalls.

    reply
    0
  • 高洛峰

    高洛峰2017-07-03 11:43:17

    It is recommended to use Docker
    1. Vmware virtual machine takes up too much hard disk space. Installing a Mongodb database with docker only takes several hundred megabytes. If you use Vmware virtual machine, the virtual system alone will be many times larger
    2. It takes seconds to start Docker
    Docker is still very interesting

    reply
    0
  • 巴扎黑

    巴扎黑2017-07-03 11:43:17

    Wow, I read a lot of good reviews from experts.

    Personal opinion

    1. If you want to learn a clustering method based on a separate operating system, such as mysql master-slave, php nginx cluster, etc., I suggest you start with vmware, because vmware simulates a real machine server cluster environment.

    2.Docker swarm method cluster

    3. Learn clustering by running operating system containers in docker (I personally do not recommend it)

    reply
    0
  • Cancelreply