Andreas Kostyrka <andreas@mtg.co.at> writes:
Hi!
I've been wondering how well ZODB deals with disk full conditions? Is it reasonable to put one Zope account quotas?
(Side note: Is there any way to do something equivalent to ``du'' with Zope? Finding out how much storage is used by some Subfolder, even if not very accurate would be probably a "good thing".
It might be possible, note that it would have the same limitations as du: it would 'wake up' (activate from the Object Store) all objects to guage their size, and then there is the question of previous object versions, should you consider the size of previous versions in the Object Database? -Michel
Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On 1 Jul 1999 michel@digicool.com wrote:
It might be possible, note that it would have the same limitations as du: it would 'wake up' (activate from the Object Store) all objects to guage their size, and then there is the question of previous object versions, should you consider the size of previous versions in the Object Database?
Interesting questions. I've been thinking more on the side of the ISP hosting Zope sites. It's not a question if the site takes 20.0 or 20.1MB, but it's a difference if it's 20MB or 160MB. Previous Versions should probably not count, as they disappear when the database is packed, right? Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.
Andreas Kostyrka wrote:
On 1 Jul 1999 michel@digicool.com wrote:
It might be possible, note that it would have the same limitations as du: it would 'wake up' (activate from the Object Store) all objects to guage their size, and then there is the question of previous object versions, should you consider the size of previous versions in the Object Database?
Interesting questions. I've been thinking more on the side of the ISP hosting Zope sites. It's not a question if the site takes 20.0 or 20.1MB, but it's a difference if it's 20MB or 160MB.
Previous Versions should probably not count, as they disappear when the database is packed, right?
Sure, but it depends on the packing parameters, including how often you pack. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
On 1 Jul 1999 michel@digicool.com wrote:
Andreas Kostyrka <andreas@mtg.co.at> writes:
I've been wondering how well ZODB deals with disk full conditions? Is it reasonable to put one Zope account quotas?
(Side note: Is there any way to do something equivalent to ``du'' with Zope? Finding out how much storage is used by some Subfolder, even if not very accurate would be probably a "good thing".
It might be possible, note that it would have the same limitations as du: it would 'wake up' (activate from the Object Store) all objects to guage their size, and then there is the question of previous object versions, should you consider the size of previous versions in the Object Database?
They're still occupying disk, nicht wahr? You could possibly have two methods, one to get the sum and one two get a mapping of version, size where old object versions and undo info was considered a version. As to waking up the objects, this seems necessary. On the other side, this could be a scheduled task running once an hour or so. Would be useless to users, but useful for accounting. Anders "Quest" Qvist NetGuide Scandinavia -- Why suffer scarcity? Look for the Open Source and enter a world of plenty!
michel@digicool.com wrote:
Andreas Kostyrka <andreas@mtg.co.at> writes:
Hi!
I've been wondering how well ZODB deals with disk full conditions? Is it reasonable to put one Zope account quotas?
(Side note: Is there any way to do something equivalent to ``du'' with Zope? Finding out how much storage is used by some Subfolder, even if not very accurate would be probably a "good thing".
It might be possible, note that it would have the same limitations as du: it would 'wake up' (activate from the Object Store) all objects to guage their size,
Not necessarily. There's a hook in ZODB3 to allow transactions to include accounting information with the intention that future storage managers might implement quota's by keeping running storage statistics by account without having to read old data.
and then there is the question of previous object versions, should you consider the size of previous versions in the Object Database?
IMO, yes, since you are still consuming resources. Obviously, this is a policy decision. BTW, I thought Andreas was asking a different qestion than the one you answered, specifically, what would happen if ZODB ran out of disk space. -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (4)
-
Anders Qvist -
Andreas Kostyrka -
Jim Fulton -
michel@digicool.com