M
M
Mika Slepinin2016-10-27 00:12:54
linux
Mika Slepinin, 2016-10-27 00:12:54

A link or a separate copy of the application?

Good evening.
Let's say I need three applications that will all work together under load. Let it be tomcat.
It should look like this:
/opt/tomcat1
/opt/tomcat2
/opt/tomcat3
What is the best way to do this? Suppose I have downloaded the archive from tomcat and unpacked it into my home directory. What should I do, separately copy the unpacked to each of the three tomcat directories, or just make three links (hard or symbolic)? In the case of links, if all three tomcats are running at the same time, accessing the same file, will this cause problems?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2016-10-27
@mikalaikaia

As I understand it, you want your ONE application to run on THREE tomcat instances, right?
Regarding the installation, I advise you to simply unpack the archive with the tomcat into different folders.
Regarding clustering, Tomcat provides such an opportunity out of the box, read the docs.
Here is a step-by-step instruction for organizing a cluster with load balancing and session replication.

S
sim3x, 2016-10-27
@sim3x

apt install tomcat7
stackoverflow.com/questions/23569327/deploying-multi...

R
romy4, 2016-10-27
@romy4

Usually this is done not with binary copies, but with different configs or even just three launches of the same one. It makes no sense to produce binaries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question