[ZODB-Dev] Packing BIG fat Data.fs
Steve Spicklemire
steve@spvi.com
Sun, 02 Sep 2001 10:58:23 -0500
Hi Bak,
Looks OK to me.. my only comments are:
Since you aren't really doing anything very helpful in the 'execpt:' clause,
why not just let the exception happen and then you might get some clues to tell
you what happened.
For folks not currently using ZEO (say folks running 5 or 6 Zope instances on a
single machine) it seems to me that the memory tax of running ZEO would be
significant, since each instance will need it's own ZEO server, at least one
client, and another client while your script is running. When my single client
is running in object/memory equilibrium, how much memory is consumed by the
client and the server? How does this compare with a "simple" stand alone Zope
instance under the same circumstances? I'd like to be wrong about this, since
ZEO is really slick!
Anyway.. neat trick!
take care,
-steve
"Bak @ kedai" wrote:
>
> -----Original Message-----
> From: Steve Spicklemire <steve@spvi.com>
> To: fritz.mesedilla@summitmedia.com.ph <fritz.mesedilla@summitmedia.com.ph>
> Cc: Steve Spicklemire <steve@spvi.com>; Hannu Krosing <hannu@tm.ee>; Chris
> Withers <chrisw@nipltd.com>; jim@zope.com <jim@zope.com>; zodb-dev@zope.org
> <zodb-dev@zope.org>
> Date: Friday, August 31, 2001 9:16 PM
> Subject: Re: [ZODB-Dev] Packing BIG fat Data.fs
>
> >
> >Hi Fritz,
> >
> > I have a cron job, borrowing heavily from the rsync howto, that
> >uses rsync to backup Data.fs and Client.py to pack the database.
>
> here's a script with no error checking and stuff to pack using ZEO coolness.
> collected from the lists.
>
> -----------------------------------
>
> #!/usr/bin/python
> import os
> zopedir = "/usr/local/Zope"
>
> os.chdir(zopedir + "/lib/python")
>
> try:
> import Zope
> app = Zope.app()
> app.Control_Panel.Database.manage_pack()
> get_transaction().commit()
> app._p_jar.close()
> except:
> print" cant pack"
> ----------------------------------------
>
> call it from a cronjob, every whatever day/hour/etc. pass days=day_num in
> manage_pack to only pack certain days
>
> is this any good, bad, dangerous, missing?
>
> thanks