O'Reilly logo

Liferay 6.x Portal Enterprise Intranets Cookbook by Katarzyna Ziółkowska, Piotr Filipowicz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up database access for the master/slave configuration

Liferay allows us to configure two different data sources: first for writing and second for reading. This configuration, in an easy way, allows users to split writing and reading requests. This type of configuration lets us build scalable and high-performance infrastructure.

Getting ready…

As we mentioned at the beginning, we are focusing on Liferay configuration aspects. Our assumption is that you are ready to use database servers with master/slave replication. The MySql official documentation at https://dev.mysql.com/doc/refman/5.1/en/replication-configuration.html describes how to configure replication.

How to do it…

In order to achieve our goal, open portal-ext.properties and configure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required