Fórumok

Shared data folder for cluster

thumbnail
William Fleming, módosítva 13 év-val korábban

Shared data folder for cluster

Regular Member Bejegyzések: 180 Csatlakozás dátuma: 2010.09.15. Legújabb bejegyzések
What is the best way to share the data folder between 2 clustered nodes. I have looked storing everything in database but I don't really want to go down this route as it would cause the mySQL server to explode in size. Then backing up the dumps would be a bigger hassle as the files would be huge. Right now I have NFS share mounted on both servers what other options are there?

Thanks
William
thumbnail
Amos Fong, módosítva 13 év-val korábban

RE: Shared data folder for cluster

Liferay Legend Bejegyzések: 2047 Csatlakozás dátuma: 2008.10.07. Legújabb bejegyzések
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Shared data folder for cluster

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
As Amos replies, there are mainly 2 things to shares - 1. indexes 2. libraries.
I recommend using Solr for the indexes. From your question, I think you were mainly concerned about the libraries. Followings are standard options available. If you have MS Office documents, CMIS tool such as Alfresco can be used by using CMISHook.

##
## Document Library Portlet
##

#
# Set the name of a class that implements
# com.liferay.documentlibrary.util.Hook. The
# document library server will use this persist documents.
#
#dl.hook.impl=com.liferay.documentlibrary.util.AdvancedFileSystemHook
#dl.hook.impl=com.liferay.documentlibrary.util.CMISHook
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
#dl.hook.impl=com.liferay.documentlibrary.util.JCRHook
#dl.hook.impl=com.liferay.documentlibrary.util.S3Hook
thumbnail
Juan Gonzalez P, módosítva 13 év-val korábban

RE: Shared data folder for cluster

Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Hitoshi Ozawa:
As Amos replies, there are mainly 2 things to shares - 1. indexes 2. libraries.
I recommend using Solr for the indexes. From your question, I think you were mainly concerned about the libraries. Followings are standard options available. If you have MS Office documents, CMIS tool such as Alfresco can be used by using CMISHook.

##
## Document Library Portlet
##

#
# Set the name of a class that implements
# com.liferay.documentlibrary.util.Hook. The
# document library server will use this persist documents.
#
#dl.hook.impl=com.liferay.documentlibrary.util.AdvancedFileSystemHook
#dl.hook.impl=com.liferay.documentlibrary.util.CMISHook
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
#dl.hook.impl=com.liferay.documentlibrary.util.JCRHook
#dl.hook.impl=com.liferay.documentlibrary.util.S3Hook


Hi Amos,

I am using succesfully using cluster nodes local indexes replicated through cluster (alternative to using Solr). This is activated when setting cluster link and replicate indexes in portal-ext.properties (sorry I don't remember their specific name right now).

And AFAIK the best dl.hook.impl for cluster is AdvancedFileSystemHook (I've read it somewhere in docs/forum).
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Shared data folder for cluster

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I am using succesfully using cluster nodes local indexes replicated through cluster (alternative to using Solr). This is activated when setting cluster link and replicate indexes in portal-ext.properties (sorry I don't remember their specific name right now).


lucene.replicate.write=true
cluster.link.enabled=true

We also tried this settings with the JBoss cluster and it was sometimes erroring due to duplicated index when post volume were high or when admin did a index recreate from on of the server.
thumbnail
Juan Gonzalez P, módosítva 13 év-val korábban

RE: Shared data folder for cluster

Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Hitoshi Ozawa:
I am using succesfully using cluster nodes local indexes replicated through cluster (alternative to using Solr). This is activated when setting cluster link and replicate indexes in portal-ext.properties (sorry I don't remember their specific name right now).


lucene.replicate.write=true
cluster.link.enabled=true

We also tried this settings with the JBoss cluster and it was sometimes erroring due to duplicated index when post volume were high or when admin did a index recreate from on of the server.


Yep I suppose this config depends on how many index operations are happening per minute, and network performance.