Task #5022
closedTask #5008: Enable Infrastructure Gateway cluster on Production
Clustering Liferay’s Documents and Media Library in Production gateways
100%
Description
Although we don't use Liferay’s Documents and Media Library in gCube, this is used by Liferay internals for storing some data such as user and sites images/logo and static content.
Liferay’s Documents and Media Library is capable of mounting several repositories at a time while presenting a unified interface to the user, for the time being we will use NFS on the SAN, so basically the directory for the document_library present in /home/life/D4Science-production-gateway/data/document_library of all nodes should be mounted on the SAN.
The disk size should not be more than 5GB, as in this moment the size of the document library data is 10MB.
However this solution is not optimal as it introduces another SPOF, therefore in the medium term, since Liferay 6.2 supports Amazon’s simple storage service (S3) it would be beneficial to switch to it.
More details about clustering the document library: https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/liferay-clustering#documents-and-media-library-clustering
Updated by Massimiliano Assante about 9 years ago
- Status changed from New to In Progress
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
NFS, for now. Steps:
on dlibsan10.san.research-infrastructures.eu:
- Installed
nfs-kernel-server - Created the volume
infra-gateway.d4science.org-dataand locally mounted as/data-infra-gateway - Created the
lifeuser, and assigned to that user the ownership of/data-infra-gateway - Added the line
/data-infra-gateway infra-gateway.d4science.org(rw,insecure,async,no_subtree_check) infra-gateway1.d4science.org(rw,insecure,async,no_subtree_check)to/etc/exports - Added the line
/dev/dlibsan10/infra-gateway.d4science.org-data /data-infra-gateway xfs defaults 0 1to/etc/fstab
- Installed
On the infra-gateway servers:
- Installed
nfs-common - Created the directory
/life/datato be used as nfs mount point - Added the line
146.48.123.250:/data-infra-gateway /life/data nfs rsize=8192,wsize=8192,timeo=14,intr,proto=tcp,port=2049to/etc/fstab - Mounted the nfs share
- Copied the
~life/D4Science-production-gateway/data/document_librarydirectory inside/life/data - Moved
~life/D4Science-production-gateway/data/document_libraryto~life/D4Science-production-gateway/data/document_library - Created the symbolic link
~life/D4Science-production-gateway/data/document_library /life/data/document_library
- Installed
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from Feedback to Closed