Task #4064
closed
Dismiss current VM next.d4science.org and create new one making it part of the same cluster of dev2.d4science.org
100%
Description
dev2.d4science.org should be already supporting tomcat clustering, the idea is to add a new node (next.d4science.org) they will share the same DB that is currently hosted on dev2.
@andrea.dellamico@isti.cnr.it should have an Ansible playbook for this already. I put next week as due date, clearly the sooner the better.
Updated by Andrea Dell'Amico over 9 years ago
I do not have a playbook to set up the clustering but it's a matter to configure the tomcat server.xml file on the VMs.
It's installed by you, so we need to find a way to not interfere.
Updated by Andrea Dell'Amico over 9 years ago
- Status changed from New to In Progress
The new VM name will be dev5.d4science.org, IP 146.48.122.143
Updated by Andrea Dell'Amico over 9 years ago
- % Done changed from 0 to 50
dev5.d4science.org is up. You can starting installing liferay, I'm working on the tomcat cluster configuration in the meantime.
Updated by Massimiliano Assante over 9 years ago
dev5.d4science.org is now part of the tomcat cluster (with dev2) accessible through http://dev4.d4science.org (soon to be accessible also with next.d4science.org).
The ha proxy is configured in round robin mode at the moment, we're still working on the cluster (andrea mostly) because currently if one tomcat instance goes down the http session get lost and the user receives an error.
Updated by Andrea Dell'Amico over 9 years ago
- % Done changed from 90 to 50
On both dev2 and dev5 you find a file named /home/life/cluster-server.xml
. It can be used to replace the <Engine name="Catalina"...
entry and the ` ... entries on the liferay's tomcat server.xml. The tomcat cluster configuration is needed to share the sessions data between the tomcat instances.
A restart will be needed.
The firewall rules have been updated already.
If it works, the remaining steps are:
- Fix the haproxy application check
- Introduce varnish between haproxy and nginx (one varnish instance for each node).
Updated by Andrea Dell'Amico over 9 years ago
I've just changed the next.d4science.org DNS record. It's now a CNAME of dev2.d4science.org
Updated by Andrea Dell'Amico over 9 years ago
next.d4science.org is now available as dev2.d4science.org CNAME, as https://next.d4science.org
Updated by Massimiliano Assante over 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
dev3.d4science.org can be dismissed
Updated by Andrea Dell'Amico over 9 years ago
I shut it down, but didn't remove the disks nor the configuration. It was deployed on dlib26x.dom0.research-infrastructures.eu
, FYI