读书人

Terracotta and Tomcat Clustering -

发布时间: 2013-11-29 00:21:24 作者: rapoo

Terracotta and Tomcat Clustering - Page 2

note that we have?disabled session persistence across Tomcat restarts because that is a task for Terracotta now.

Tomcat HA Configurations?

?

jvmRoute?we need to define a unique jvmRoute for each Tomcat server.

edit ${CATALINA_HOME_NODE1}\conf\server.xml, change the?Engine?tag to look like this:?
?edit?${CATALINA_HOME_NODE2}\conf\server.xml, change the?Engine?tag to look like this:?

Make sure you don't have port conflictsas i am running both Tomcats on the same box, i had to change the ports for the second Tomcat.
in?${CATALINA_HOME_NODE2}\conf\server.xml, i have changed
shutdown port: 8005 to 8006
http port: 8080 to 8081
ajp port: 8009 to 8010

Run both Tomcatsopen two more terminals and navigate to?${CATALINA_HOME_NODE1}\bin on one and?${CATALINA_HOME_NODE2}\bin on the other, on both terminals execute:?
also note that the sessions button is now active.

?

读书人网 >Web前端

热点推荐