Project

General

Profile

Actions

Task #5022

closed

Task #5008: Enable Infrastructure Gateway cluster on Production

Clustering Liferay’s Documents and Media Library in Production gateways

Added by Massimiliano Assante almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Urgent
Category:
Other
Target version:
Start date:
Sep 14, 2016
Due date:
Sep 16, 2016
% Done:

100%

Estimated time:
2.00 h
Infrastructure:
Production

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

Actions #2

Updated by Massimiliano Assante almost 9 years ago

  • Description updated (diff)
Actions #3

Updated by Massimiliano Assante almost 9 years ago

  • Parent task set to #5008
Actions #4

Updated by Massimiliano Assante almost 9 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Andrea Dell'Amico almost 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-data and locally mounted as /data-infra-gateway
    • Created the life user, 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 1 to /etc/fstab
  • On the infra-gateway servers:

    • Installed nfs-common
    • Created the directory /life/data to 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=2049 to /etc/fstab
    • Mounted the nfs share
    • Copied the ~life/D4Science-production-gateway/data/document_library directory inside /life/data
    • Moved ~life/D4Science-production-gateway/data/document_library to ~life/D4Science-production-gateway/data/document_library
    • Created the symbolic link ~life/D4Science-production-gateway/data/document_library /life/data/document_library
Actions #6

Updated by Andrea Dell'Amico almost 9 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)