Utility to List Plone Instances

When you have multiple Plone instances running on multiple Linux boxes, you will need utilities for instance management. Here is a Python-based tool, rt.zps. It's easy to install:

$ sudo apt-get install python-psutil
$ sudo easy_install rt.zps

As its name indicates, of course you can use it to inspect Zope processes.

$ zps
CWD:      /home/user/plone1
User:     user
PID:      1234
Conf:     /home/user/plone1/parts/instance/etc/zope.conf
Address:  8081
Memory:   1.96%

CWD:      /home/user/plone2
User:     user
PID:      12345
Conf:     /home/user/plone2/parts/instance/etc/zope.conf
Address:  8082
Memory:   1.96%

You can check if any instance running for a specific port.

$ zps --port 8080

No comments: