Re: Best Practice for Setting up 19 Sites in Plone 4.3
Edward Soong <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
I configured my zeo.conf in /usr/local/plone/zeocluster/parts/zeoserver/etc/
with additional filestorage (see codes in pastebin - http://pastebin.com/Cb7fFeVY)
The zeoserver starts up fine and the separate ZODBs are recognized and populate with Data.fs
for example:
[root@plone01 /usr/local/plone/zeocluster/var/filestorage/data_fec]# ls -lh
total 12K
-rw-r--r-- 1 plone_daemon plone_group 4 Aug 5 11:23 data_fec.fs
-rw-r--r-- 1 plone_daemon plone_group 7 Aug 5 11:23 data_fec.fs.index
-rw-r--r-- 1 plone_daemon plone_group 7 Aug 5 11:23 data_fec.fs.lock
-rw-r--r-- 1 plone_daemon plone_group 0 Aug 5 11:23 data_fec.fs.tmp
But in ZMI, I am unable to do ZODB Mounting Point because the site is not listed under Contents.
Then I tried to wrap the additional filestorages in zeo.conf with:
zope-conf-additional =
<zodb_db sitename>
# FileStorage for sitename
<filestorage>
path ….
</filestorage>
mount-point /sitename
</zodb_db>
When zeoserver starts, errors:
zeoserver: Error: 'zope-conf-additional' is not a known key name
zeoserver: Error: unknown type name: 'zodb_db'
zeoserver: Error: 'mount-point' is not a known key name
Wonder what am I doing wrong?
In addition, in my Plone 3.3.5 production site, the buildout.cfg has - http://pastebin.com/t9qMvaZm to help with creation of mounting points for separate ZODB data files.
I did the same for Plone 4.3.3 buildout.cfg, but it has no effect.
Thanks in advance for your advise.
~~~~~~~~~~~~~~~~~~~~~~~~
Edward Soong
[email protected]
310.218.9338
~~~~~~~~~~~~~~~~~~~~~~~~
On Aug 1, 2014, at 10:40 PM, dieter <[email protected]> wrote:
> Edward Soong <[email protected]> writes:
>> ...
>> I work at an university school of engineering where they current have Plone 3.3.5 serving 19 sites on 1 zope instance using separate Data.fs files for each site (ZODB Mounting Point), which is described in this support document "http://plone.org/documentation/kb-old/multiple-plone-sites-per-zope-instance-using-separate-data-fs-files-for-each-one. It is using collective.recipe.filestorage
>>
>> (1) I am in the process to upgrade the 19 sites to Plone 4.3.3, but I am not certain if 4.3 supports separate Data.fs for each site on 1 Zope instance.
>
> "ZODB Mount Points" are implemented at a very low level (much below Plone)
> and (if set up correctly) are (almost) transparent to higher levels
> (such as Plone). Thus, all Plone versions should be able use them
> in the same way.
>
>> If 4.3 does, how do you configure buildout.cfg to support that?
>
> The normal instance recipe does not support this setup
> directly (in the same way as the single mount point setup).
> But it supports a general purpose configuration option
> for adding arbitrary definitions to the generated "zope.conf".
> Use this to define the storages and the associated mount points
> (likely, your old installation has done this as well).
>
>> (The configuration in Plone 3.3.5 fails in 4.3.3). The last release of collective.recipe.filestorage was in 2010.
>
> I do not know "collective.recipe.filestorage". Should its sole
> purpose be to help with the configuration of the storages and the
> corresponding mount points, you could do without it.
>
>
>> (2) Or should I put 10 sites onto 1 Data.fs? We bought 2 server machines, planning to divide up the 19 sites, 10 on one server and 9 on the other server, to increase web server performance.
>
> Likely, there was a reason for the original separation (one might
> be easier restoration in case of some catastrophical destruction in one site).
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk