Combination View Flat View Tree View
Threads [ Previous | Next ]
JITENDRA PANIGRAHY
Implement Multi-Tenancy in Liferay
April 26, 2012 2:15 AM
Answer

JITENDRA PANIGRAHY

Rank: New Member

Posts: 17

Join Date: April 22, 2012

Recent Posts

Hi,

We are building a multi tenant SaaS product using Liferay.
We have implemented database Sharding with us.
--Need steps to implement Multi-tenancy in liferay. Would appreciate for any pointers
--Is it possible to mix sharding with multi-tenanncy ?

Many Thanks,
Jitendra
Alexander Chow
RE: Implement Multi-Tenancy in Liferay
April 26, 2012 2:38 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

Sharding was designed for multi-tenancy in Liferay. So yes, they play well together. Take a look at the (slightly dated) wiki.
JITENDRA PANIGRAHY
RE: Implement Multi-Tenancy in Liferay
April 26, 2012 10:12 AM
Answer

JITENDRA PANIGRAHY

Rank: New Member

Posts: 17

Join Date: April 22, 2012

Recent Posts

Thanks. FYI, we have already sharding implemntation with us. I was little misunderstood.
Hitoshi Ozawa
RE: Implement Multi-Tenancy in Liferay
April 26, 2012 2:33 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

We have implemented database Sharding with us.
--Need steps to implement Multi-tenancy in liferay. Would appreciate for any pointers


Isn't problem with your question. You've explicitly stated that you already have implemented sharding and wants steps to implement multi-tenancy. Hope the link I gave you provided you with the necessary information.
JITENDRA PANIGRAHY
RE: Implement Multi-Tenancy in Liferay
May 10, 2012 2:02 AM
Answer

JITENDRA PANIGRAHY

Rank: New Member

Posts: 17

Join Date: April 22, 2012

Recent Posts

Yes, that provides the required information. Thanks
Hitoshi Ozawa
RE: Implement Multi-Tenancy in Liferay
April 26, 2012 3:33 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Control Panel -> Portal Instance

Create new virtual host for each tenant.

http://www.liferay.com/community/wiki/-/wiki/Main/Virtual+Hosting+%28ASP%29
Ionut Negoita
RE: Implement Multi-Tenancy in Liferay
July 1, 2013 12:49 AM
Answer

Ionut Negoita

Rank: New Member

Posts: 4

Join Date: August 27, 2012

Recent Posts

Hi,

I also tried to setup Liferay with sharding for multi-tenancy and had some challenges (Liferay 6.0 in my case), the main one being that for multiple shards (let's say thousands), on startup the server tries to create a connection to each and every shard - takes hours.

If you are interested how to solve this problem I've written 2 articles with the changes made such that the portal with 15000 shards starts in about 1 min. This is done by avoiding creating connections on startup, and only creating them when a shard is actually accessed.


Liferay multi-tenancy generic description

Liferay multi-tenancy configuration

I'm curios about any feedback and please let me know if anybody else has tried this or is willing to try.

kindest regards,
John