Often it may be required to split out the 3 main webapps of Alfresco (alfresco, share and tomcat) onto separate instances of Tomcat on the same VM. This is for improving performance and improving fault tolerance.
Instructions
Make a copy of tomcat folder for share and solr.
cp -r tomcat tomcat-share
cp -r tomcat tomcat-solr
Give new port numbers to tomcat start, stop, ajp and redirect port for new tomcats in tomcat-share/conf/server.xml AND tomcat-solr/conf/server.xml
Remove unnecessary deployment config xml file(alfresco.xml OR share.xml OR solr.xml) from <tomcatDir>/conf/Catalina/localhost. Only those xml file should be here which application are running on particular tomcat. alfresco.xml for tomcat, share.xml for share and solr4.xml for solr running tomcat.
Update tomcat path in <tomcatDir>/scripts/ctl.sh file
Remove unneccessary war file from tomcat webapps. If 3 tomcats to be run separately for all 3 apps, then please have alfresco.war under tomcat/webapps, share.war under tomcat-share/webapps and solr4.war under tomcat-solr/webapps.
Start tomcats using <tomcatDir>/scripts/ctl.sh start and stop using <tomcatDir>/scripts/ctl.sh start commands
Comments