OpenCms Cloud Ready Cluster

Install OpenCms OCCX 8.5 Cluster on 2 Ubuntu VMs (Part IV)

apt-get -y update
apt-get -y upgrade

apt-get -y install git-core
apt-get -y install tomcat6
cd /var/lib/tomcat6/webapps/

git clone ssh:[email protected]/app/git/cloudy-opencms.git opencms
chown -R tomcat.tomcat opencms/

vi /etc/default/tomcat6 → Ubuntu
vi /etc/tomcat6/tomcat6.conf → CentOS

JAVA_OPTS="-Djava.awt.headless=true -Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=GLOBAL -XX:+UseConcMarkSweepGC"

On OpenStack or Eucalyptus create a SnapShot from the VM and run a new instance from the snapshot, you’re done!

For auto-scaling, define an auto scaling group in Eucalyptus or on Amazon and enjoy OCCX.
ToDo: use Heat on OpenStack.

Twitter News