Forums de discussion

Implement Multi-Tenancy in Liferay

JITENDRA PANIGRAHY, modifié il y a 12 années.

Implement Multi-Tenancy in Liferay

New Member Publications: 17 Date d'inscription: 22/04/12 Publications récentes
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
thumbnail
Alexander Chow, modifié il y a 12 années.

RE: Implement Multi-Tenancy in Liferay

Liferay Master Publications: 518 Date d'inscription: 20/07/05 Publications récentes
Sharding was designed for multi-tenancy in Liferay. So yes, they play well together. Take a look at the (slightly dated) wiki.
JITENDRA PANIGRAHY, modifié il y a 12 années.

RE: Implement Multi-Tenancy in Liferay

New Member Publications: 17 Date d'inscription: 22/04/12 Publications récentes
Thanks. FYI, we have already sharding implemntation with us. I was little misunderstood.
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Implement Multi-Tenancy in Liferay

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
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, modifié il y a 11 années.

RE: Implement Multi-Tenancy in Liferay

New Member Publications: 17 Date d'inscription: 22/04/12 Publications récentes
Yes, that provides the required information. Thanks
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Implement Multi-Tenancy in Liferay

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
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, modifié il y a 10 années.

RE: Implement Multi-Tenancy in Liferay

New Member Publications: 10 Date d'inscription: 27/08/12 Publications récentes
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
thumbnail
Bhuwan Gautam, modifié il y a 9 années.

RE: Implement Multi-Tenancy in Liferay

New Member Publications: 22 Date d'inscription: 16/01/13 Publications récentes
Please see my post: JTA with Lifeay+JBoss