[ZODB-Dev] zodb monitor port / tailing a .fs

Darryl Dixon - Winterhouse Consulting darryl.dixon at winterhouseconsulting.com
Wed Oct 13 21:40:40 EDT 2010


> On 14/10/2010 01:28, Darryl Dixon - Winterhouse Consulting wrote:
>>> Do we have any kind of "tail -f /some/filestorage.fs" yet? (or have we
>>> always had such a tool) to see what the last few transactions in the
>>> underlying file storage look like in a human-readable form?
>>
>> fsdump.py gets you pretty close (ZODB/scripts/fsdump.py). Between that
>> and
>> the Undo log for the DB inside Zope, you might be able to figure it
>> out...
>
> ..well, the Undo log shows no entries ;-)
>
> ...and fsdump appears to have no way of saying "show me the last few
> transactions in this 35GB file" :-(
>

Yeah it's pretty verbose. I usually just pump the output to a text file
somewhere and then you can use all the usual tools to slice'n'dice it
afterwards. Each transaction is easy to find in the output, so it's not
too hard to jump to the end of the file and search back upwards.

D


More information about the ZODB-Dev mailing list