Home > OS >  With the docker and a server to run multiple tomcat
With the docker and a server to run multiple tomcat

Time:10-03

At present, the company now has dozens of applications running in five of the physical machine, each physical machine more than ten applications, is now made a tomcat template, and then defines a configuration file for each application, mainly define the port configuration file, log repository paths of these parameters, and then start the application of time each application will start a separate port tomcat instance, launched a dozen tomcat is equivalent to a server to monitor different port, the younger brother to research the docker no excuse me the docker to achieve application isolation, want to ask next now I have what disadvantage compared to the model and the docker, please bosses, some directions

CodePudding user response:

Docker all applications can be deployed on a single physical machine, and service,

CodePudding user response:

Hello, you this kind of situation suggest doing it in a docker

CodePudding user response:

reference 1st floor mouse_zhu response:
docker all applications can be deployed on a single physical machine, and micro service,

Difficult to multiple tomcat is not micro service? Do you have any misunderstanding is on service

CodePudding user response:

Docker separate application only in the test environment now actually meaningful because you just need to mirror can get a MySQL NGINX, etc., do not need their installation configuration, in a production environment must be used with k8s or other layout tool makes sense, because want to consider the high availability, high load and some other factors, according to what you are saying now, alone docker, personally I understand maybe the only advantage is isolation, can isolate the use of CPU and memory, even if the program bug does not affect other applications, can be in a separate environment, to some extent avoid going down the wrong directory lead to wrong operation,
  • Related