Multiple Apache mod_jk servers pointing to the same Tomcat worker?

We have one Tomcat application server and one front-end web server with Apache and mod_jk. Is it possible for us to add a second front-end web server that points to the same application server and also starts Apache and mod_jk?

We do not want to do this due to load balancing. Rather, it is for migration reasons. The new web server will be a completely different OS and will use a different SSO authentication module. We want to be able to run and test it, switch the DNS record to make it live, and decommission the old server.

The current works.properties file is as follows:

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=10.x.x.x
worker.worker1.port=8009

Is it possible to simply duplicate this configuration to a second web server?

I have no experience or experience with this, but I was asked to help with the migration of the server, and I try my best to help.

I read the documentation for mod_jk and Tomcat. I found all kinds of documentation, pointing one instance of mod_jk to several Tomcat application servers, but not describing the opposite to what I'm trying to accomplish?

Is it possible?

Edit: I should note that we do not have access to the Tomcat server, since it is managed by a third-party provider. I’m sure that they will make changes if we ask them, but we don’t have the opportunity to enter it ourselves.

+4
source share
3 answers

, , . , , Apache (js, images, css), Tomcat "".

Tomcat, , Apache IIS , , .

, employees.properties Apache httpd *.conf.

, tomcat, Tomcat AJP , Apache Tomcat.

+2

- . ** - .

, Tomcat , -. , , tomcat , -. , Tomcat .

** - - , . , -.

+2

-?

, , Tomcat, worker.properties Apache 1 Apache 2. 4 , , , worker.worker1.cachesize=10 worker.worker1.cache_timeout=600, , . , , Tomcat, .

- - HTTP-, Apache, , -. , - -, .

mod_jk Tomcat. mod_jk Tomcat, , ?

?

, , , - , Tomcat -, , ..

, , Apache, , SSO, , - (Apache) , , Apache? , , URL- Apache, , / Apache, / URL-, (IP: ) / Apache. , , Apache IP-, .

0

Source: https://habr.com/ru/post/1671286/


All Articles