The Zope application server runs the Zenoss user interface. Zope performance is tied closely to the performance settings in the $ZENHOME/etc/zope.conf
file.
Zenoss recommends that you set several values in your zope.conf
file to match your deployment. The value of cache-size
(as specified in zodb_db main
) should exceed the number of objects in the global catalog. The following steps will help you determine this value. You should check this value periodically and adjust it as necessary.
Edit the
zope.conf
file.Add these lines to the file:
Calculate and set
<zodb_db main> cache-size
value:In
zendmd
, execute the following command:len(zport.global_catalog)
Round up the returned value to the next highest multiple over the catalog size. For example, round up a catalog value of 149,000 to 200,000. If this number exceeds 1 million, contact Zenoss Professional Services.
Enter the rounded-up value for
cache-size
(in<zodb_db main>
).
Calculate and set the
python-check-interval
setting:As the zenoss user, run the following script:
import math; from test import pystone; int(math.ceil(sum(s[1] for s \ in (pystone.pystones() for i in range(3)))/150.0))
Enter the returned value for
python-check-interval
.
Calculate and set the
<zeoclient> cache-size
setting:Pack the database. (See the section titled "Packing the ZEO Database.")
Set the value of
cache-size
to roughly two times the size of the$ZENHOME/var/Data.fs
file.
Set the value of
zserver-threads
according to the following guidelines:Table 9.2. zserver-threads Values
Number of Concurrent Users Value of zserver-threads 1 to 50 users
4
50+ users
10
Set the value of pool-size according to the following guidelines:
Table 9.3. pool-size Values
Number of Concurrent Users Value of pool-size 1 to 50 users
Remove the pool-size line.
50+ users
50
Restart Zenoss to acknowledge the new settings.