Server architecture - can docker be used to learn server clusters?
PHP中文网
PHP中文网 2017-07-03 11:41:17
0
5
1335

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中文网

认证高级PHP讲师

reply all(5)
某草草

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

女神的闺蜜爱上我

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

曾经蜡笔没有小新

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.

小葫芦

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

巴扎黑

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)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template