All of lore.kernel.org
 help / color / mirror / Atom feed
* Data redundancy in tabled
@ 2009-10-29 23:40 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2009-10-29 23:40 UTC (permalink / raw)
  To: Project Hail List

I have considered how I want to implement the first cut of data redundancy
in tabled, and came with the following plan:

 - Checksum for data is to be stored in both the db4 entry and
   the metadata in chunk.

 - tabled gets a new "thread" (probably not really a thread)
   that walks keys in db4 by record number, then asks all listed
   chunkservers to verify if the OID is present (actually asks
   to fetch the metadata). If not present, it updates the db4.
   If the reported checksum mismatches the one in db4, it tells
   chunkserver to drop that object (optionally).

   If in the end the object's redundancy is insufficient,
   replication is scheduled.

 - chunkservers run checksums by themselves, without a command
   from tabled, verify against checksums in the metadata that
   they have. If object fails, it's removed (or maked dead,
   I haven't decided yet).

 - a separate process running at tabled processes scheduled
   replications. The usual applies: control bandwidth and
   prevent hogging up the network and servers, batch up OIDs
   between same chunkservers, etc.

This all looks nicely parallel except for the db4 scanner,
thanks to decoupling of checksumming from tabled's affairs.
I decided not to do anything about the db4 at this stage, because
any improvements need a new database. I have a vague plan for
that as well, but it must wait. The above is what will make
tabled useable for the general public.

-- Pete

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-29 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 23:40 Data redundancy in tabled Pete Zaitcev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.