root / plugins / zope / README-zodb @ 17f78427
Historique | Voir | Annoter | Télécharger (1,32 ko)
| 1 |
These are 2 rather crude munin plugins to get at data about zopes ZODB. |
|---|---|
| 2 |
They have proved very useful, together with the process_memory |
| 3 |
plugin, in tweaking the zodb cache-size for performance. |
| 4 |
|
| 5 |
There is no config, auto or otherwise, you have to edit the scripts to change anything. |
| 6 |
Should not be to hard however :) |
| 7 |
|
| 8 |
|
| 9 |
To install you have to copy the two scripts in the "scripts_python" |
| 10 |
folder into zope. Probably easiest just to paste them into an |
| 11 |
appropriately named new script in the ZMI. |
| 12 |
|
| 13 |
Click on the proxy tab, and give them the "Manager" role. |
| 14 |
|
| 15 |
You can test them like this: |
| 16 |
wget --delete-after -q -O - localhost:8080/<your path>/munin_db_activity.py |
| 17 |
wget --delete-after -q -O - localhost:8080/<your path>/munin_cache_parameters.py |
| 18 |
|
| 19 |
Edit zope_db_activity and zope_cache_parameters scripts to reflect |
| 20 |
<your path> and your instance(s) ports. |
| 21 |
|
| 22 |
Then move them into your munin plugins lib, and create a symlink under etc according to the |
| 23 |
usual munin custom: |
| 24 |
|
| 25 |
mv zope_* /opt/munin/lib/plugins/ |
| 26 |
|
| 27 |
ln -s /opt/munin/lib/plugins/zope_* /etc/opt/munin/plugins/ |
| 28 |
|
| 29 |
Test them with: |
| 30 |
/opt/munin/sbin/munin-run zope_db_activity |
| 31 |
/opt/munin/sbin/munin-run zope_cache_parameters |
| 32 |
|
| 33 |
Restart your munin-node and the graphs should appear shortly. |
| 34 |
|
| 35 |
If you make any improvements (which should be easy), please update |
| 36 |
the munin exhange entry, or mail me at gaute(at)pht(dot)no |
