MogileFS::Client 1.16, MogileFS::Utils 2.23, and ::Server 2.60 are going
up to CPAN right now.
2.60 is the "checksums" release, which Eric Wong has gracefully
contributed to the project. Tirelessly prodding at it since... november I
think :)
I've spent some time hacking at it as well, but please be wary as with all
new batches of code.
For the next few releases, we reserve the right to make significant
changes to the checksums code, or how it operates. We want to hear your
feedback on its functionality and if it is flexible enough for your uses.
There is some preliminary documentation in docs/checksums.txt. Eric will
be posting a wiki page when he gets back (I hope!).
The one thing worth noting that's not in the file is the "fsck_checksum"
option:
$ mogadm settings set fsck_checksum [off|class|MD5]
If set to "off", it will force fsck to not test checksums even if they are
specified in a class.
If set to "MD5', FSCK will compare checksums on all files even if you
store none in your database. If you wish to evluate the checksums feature,
this is a great way to take a look. It will log errors about any
inconsistencies with the checksums of your stored files. If you find
enough, maybe consider enabling it via the class.
Checksums adds a new table, so will store one extra row of information per
fid stored in the database. This may be too difficult for many users, so
the feature is by all means optional. If not enabled, it does not store
any extra data.
have fun,
-Dormando
http://code.google.com/p/mogilefs/wiki/Checksums
I hope he doesn't mind me linking it here :P May be slightly inaccurate or
otherwise missing data.
I don't mind at all :)
I think it includes everything necessary for Perl users, though the Perl
API could probably be made easier-to-use wrt checksums.
I mainly use the Ruby client bindings, and I think I still need to
document how that uses checksums though it's had checksum support for a
while...
I'll let others deal with Python/PHP/Java/etc clients since I don't use
them.
Welcome back!
> I think it includes everything necessary for Perl users, though the Perl
> API could probably be made easier-to-use wrt checksums.
Suggestions?
> I mainly use the Ruby client bindings, and I think I still need to
> document how that uses checksums though it's had checksum support for a
> while...
yay!
> I'll let others deal with Python/PHP/Java/etc clients since I don't use
> them.
You want to link it into the rest of the wiki? or would you like me to
decide where that goes?
Thanks, still a bit deaf and disoriented and will likely remain
so for a bit :x
> > I think it includes everything necessary for Perl users, though the Perl
> > API could probably be made easier-to-use wrt checksums.
>
> Suggestions?
The Ruby client library can automatically calculate the checksum
as it uploads the file, so there's no need to manually checksum
files yourself.
It can send Content-MD5 as a HTTP trailer (if configured to do so, since
few HTTP servers support it), too. This is very useful for things that
are streamed (or very large), since you only need to read it once.
> > I'll let others deal with Python/PHP/Java/etc clients since I don't use
> > them.
>
> You want to link it into the rest of the wiki? or would you like me to
> decide where that goes?
I'll let you decide, I have enough trouble deciding how to organize
code already :>
Eric, what got decided about being able to send an HTTP trailer to cmogstored? I'm streaming writes and I'd prefer not to buffer the files in service of calculating checksums. Sending a trailer would be great.
--Dave
---
You received this message because you are subscribed to the Google Groups "mogile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mogile+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.