Databases Reference
In-Depth Information
• If the Media Library content needs to be stored in the database, DBStore
is preferred over the JCR store with database. DB Store is better for
performance and scalability.
• If JCR-based database storage is used for Media Library, it is recommended
to keep the JCR database separate.
• If JCR-based database storage is used for Media Library, it is very important
to ensure that the cluster node ID is unique in the Jackrabbit configuration
file ( repository.xml ).
Search engine configuration
Liferay Portal uses Apache Lucene as a search engine. Apache Lucene creates search
indexes to provide the search functionality. Apache Lucene, by default, stores search
indexes into the filesystem. To make sure the search functionality works properly
in a clustered environment, we need to synchronize search indexes of all the Liferay
Portal nodes. There are multiple options to make sure the search functionality works
properly in a clustered environment. Let's learn how to configure these options and
then talk about the best practices associated with them.
Lucene index storage on network storage
Liferay's Lucene configuration provides a way to configure the index storage directory
through the portal-ext.properties file. In order to use this option, we will need a
specialized Storage Area Network (SAN) appliance with file locking capabilities. Let's
learn how to configure Lucene to store index files on the SAN appliance.
1.
Stop both the Liferay Portal servers if they are already running.
2.
Add the following property to portal-ext.properties of both the Liferay
Portal nodes:
lucene.dir=<SAN based mapped directory>
3.
Now start both the nodes one by one.
4.
Now, access the Portal and sign in using admin user name. Then from the
dock bar, access Control Panel and then from the Server Administration
section, click on the button beside the Rebuild all search indexes label.
We have just added a property in the portal-ext.properties file that specifies
the location of the search indexes. Both the Liferay Portal nodes will specify the same
network storage directory and hence, both the nodes will refer to the same copy of
search indexes. As the index storage location has changed, we rebuilt search indexes
for the existing data. This is the easiest option to centralize search indexes.
 
Search WWH ::




Custom Search