構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Gabor Kiss
separate instance datas
2009/10/21 1:25
答え

Gabor Kiss

ランク: New Member

投稿: 2

参加年月日: 2009/10/20

最近の投稿

Hi,

I have a situation and I do not know how to make an optimal solution for it:

- I would like to have 3 different portal with 3 different administrator
- they need to work with different databases
- I want the administrators not to be able to see all the portlets and themes, only those which they have grant to. I mean, some portlet can be seen only in the suitable instance, in the list of portlets (in Control Panel > Plugins Configuration and in Add Application list)

Can I solve this problem by installing only one portal with 3 instances, or should I install 3 portals.
I would rather having only one portal with 3 instances (less hardware req.) but my last criteria is not simple at all because all instance uses the same installed portlets list by default - so my main problem is that I need a companyId filter in the mentioned lists.

Please help me, I do not know how to start.

Thanks,
Gabor
Lisa Simpson
RE: separate instance datas
2009/10/23 9:31
答え

Lisa Simpson

ランク: Liferay Legend

投稿: 2034

参加年月日: 2009/03/05

最近の投稿

Your only solution is really 3 separate installs. Unfortunately, most of the configuration happens at the installation level and it will apply to multiple "instances" which are really virtual hosts on the portal.

Things like who the registration emails come from.... Who the subscription updates come from, etc. all that is set for the entire server.
Gabor Kiss
RE: separate instance datas
2009/10/26 1:33
答え

Gabor Kiss

ランク: New Member

投稿: 2

参加年月日: 2009/10/20

最近の投稿

I thought I could solve my problems by configuring DB sharding and user roles.
I plan that I install another portal and export its datas only if it is very neccessary (when I have to change base configuration).

Thank you for answering.

Gabor
Lisa Simpson
RE: separate instance datas
2009/10/26 8:21
答え

Lisa Simpson

ランク: Liferay Legend

投稿: 2034

参加年月日: 2009/03/05

最近の投稿

Until a lot of the configuration stuff becomes more isolated from one customer to another, using separate instances is really your best bet. Prime example... My liferay instance....

I host my own web site for my consulting company, a curly hair web site, a car web site, a dating site, and a few others. However, because I have to configure the emails from the message boards, calendar, blog, etc. in the portal-ext.properties, they call come from the same source no matter which site you are a user of. And what's ok for the curly-haired girls doesn't work for the car guys which also doesn't work for the dating site. Sharding won't affect that at all.
steve rieger
RE: separate instance datas
2009/11/05 19:10
答え

steve rieger

ランク: Expert

投稿: 436

参加年月日: 2006/09/11

最近の投稿

can we see the various sites. am interested in seeing different layouts.
Danny Stevens
RE: separate instance datas
2012/08/05 21:23
答え

Danny Stevens

ランク: New Member

投稿: 20

参加年月日: 2011/09/14

最近の投稿

Just to clarify,

sharding allows the records in a database table to be split amongst multiple database instances. From Liferay's point of view there is still only one logical database.

However, with multiple shards you gain some benefits. A performance one certainly, but also you can do seperate back up and restore by shard which can be more flexible.

Each portal instance has its own settings values, so it can have its own virtual host, mail domain and rules. The admin of one portal instance does not get access to other portal instances. Only the omni max admin can do that.

Plugin settings are also isolated to portal instances, but plugin installation is across an entire portal.
Hitoshi Ozawa
RE: separate instance datas
2012/08/05 21:39
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

Just to clarify, liferay's sharding does not completely separate database data across portal instances. There are some portal information that is shared by all the liferay instances.
Danny Stevens
RE: separate instance datas
2012/08/05 23:21
答え

Danny Stevens

ランク: New Member

投稿: 20

参加年月日: 2011/09/14

最近の投稿

Yes, for example the shard table. Although it appears in each database instance only the one in the default shard is used.
Arno Broekhof
RE: separate instance datas
2012/08/06 0:34
答え

Arno Broekhof

ランク: Junior Member

投稿: 42

参加年月日: 2011/10/18

最近の投稿

The only thing i can say about this, is the last time i tested this ( Liferay 6.1 RC2 and GA1 ) liferay became pretty unstable en there where even portlets that didn't work anymore
Danny Stevens
RE: separate instance datas
2012/09/23 21:18
答え

Danny Stevens

ランク: New Member

投稿: 20

参加年月日: 2011/09/14

最近の投稿

I have been doing further work with shards. I have discovered some company associated data that is still kept on the default database only, instead of in the instance shard.

company, portalpreferences and virtualhost.

I also notice that the kaleo tables do this but it seems to be a mistake.

Finally there are two tables that seem to split company data between the shard and default: expandotable and role_. I have not worked out the rule used to decide which record goes where.