[tahoe-lafs-trac-stream] [tahoe-lafs] #1836: use leasedb (not crawler) to figure out how many shares you have and how many bytes

tahoe-lafs trac at tahoe-lafs.org
Wed Nov 21 00:49:39 UTC 2012


#1836: use leasedb (not crawler) to figure out how many shares you have and how
many bytes
-------------------------+-------------------------------------------------
     Reporter:  zooko    |      Owner:  davidsarah
         Type:  defect   |     Status:  assigned
     Priority:  normal   |  Milestone:  undecided
    Component:  code-    |    Version:  1.9.2
  storage                |   Keywords:  leases garbage-collection
   Resolution:           |  accounting
Launchpad Bug:           |
-------------------------+-------------------------------------------------
Description changed by zooko:

Old description:

> In current trunk, there is a "BucketCountingCrawler" whose job it is to
> count up how many shares are stored.
>
> I propose that this be replaced by using the leasedb to count files (a
> simple SQL COUNT query!), and at the same time to extend the storage
> server's abilities by letting it be able to add up the aggregate sizes of
> things as well as their number.
>
> This is part of an "overarching ticket" to eliminate most uses of crawler
> — ticket #1834.

New description:

 In current trunk, there is a "!BucketCountingCrawler" whose job it is to
 count up how many shares are stored.

 I propose that this be replaced by using the leasedb to count files (a
 simple SQL COUNT query!), and at the same time to extend the storage
 server's abilities by letting it be able to add up the aggregate sizes of
 things as well as their number.

 This is part of an "overarching ticket" to eliminate most uses of crawler
 — ticket #1834.

--

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1836#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list