betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

03 February 2010

Having Fun with ZEO

Pull out the tablecloth
It's snowy on the higher hills around Athens today

While it's cold (for our standards) with even a bit of snow on the higher hills around town, I'm having fun with ZEO. The thing is, I've got to run a one-off script in one of our instance, doing a catalog query and changing something on every found object. This is ideal to do with a plain old Python Script in the ZMI... except of course I have blocked any attempts to change those objects except through properly secured filesystem code.

Now I could change the permission and restart Zope and edit the objects and go back... and in the process kick out all users twice for the downtime. Don't like. Our ZEO setup offers a fun way of doing this without bothering users:

Because our setup is sporting one ZEO server hosting the same ZODB to multiple Zope instance, I did the code change / restart / edit / code change back / restart cycle only on that instance. The other instance, the one where most of the users are working on remained unchanged. It continued to run with the unchanged code, it wasn't restarted. The result: I got my job done, nobody noticed.

This is no big news for people who use ZEO intensely, some people even keep one Zope instance set up at hand for just those cases. That Zope instance doesn't even need to be constantly running. Another often seen trick is to update instances in round robin fashion, moving users without anybody noticing to different instances. Can't do that when the objects or their APIs have changed too much, but for most of the cases it works just fine.

Posted by betabug at 15:35 | Comments (0) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< Sitting under a burned tree | Main | Can I Call Home Now, Please? >>
There are no comments.
You can trackback to:
There are no trackbacks.