Personal tools
You are here: Home iber Blog Zope Separate Data.fs files for each Zope instance, cache size

Separate Data.fs files for each Zope  instance, cache size Separate Data.fs files for each Zope instance, cache size

Document Actions
Running one instance but using a separate db file for each instance. A single zope instance consums less memory. Add and mount a data.fs for every plone instance. It's very easy using zope 2.7:
 <zodb_db plone1>
     <filestorage>
       path $INSTANCE/var/Data-plone1.fs
     </filestorage>
     mount-point /plone1
     cache-size 5000
 </zodb_db>

Restart zope and add a plone site with the id plone1. Note: You must create the folder after adding the moint point.

When using seperate dbs it's very easy to migrate some instances to a second server. You don't need to export a large site but simply copy the files and the sections in the zope.conf

_____
tags:
Friday, June 10, 2005 in Zope  |  Permalink |  Comments (0)

Powered by Plone