#1836 closed defect

use leasedb (not crawler) to figure out how many shares you have and how many bytes — at Version 6

Reported by: zooko Owned by: davidsarah
Priority: normal Milestone: 1.15.0
Component: code-storage Version: 1.9.2
Keywords: leases garbage-collection test-needed accounting Cc:
Launchpad Bug:

Description (last modified by zooko)

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.

Change History (6)

comment:1 Changed at 2012-10-30T23:12:45Z by zooko

  • Description modified (diff)

comment:2 Changed at 2012-10-30T23:14:24Z by zooko

The part about reporting total space usage would be very useful for customers of LeastAuthority.com (who pay per byte), among others.

Last edited at 2012-10-31T10:07:37Z by zooko (previous) (diff)

comment:3 Changed at 2012-10-31T00:09:16Z by davidsarah

  • Owner set to davidsarah
  • Status changed from new to assigned

+1.

comment:4 Changed at 2012-10-31T10:08:04Z by zooko

  • Summary changed from stop crawling share files in order to figure out how many shares you have to use leasedb (not crawler) to figure out how many shares you have and how many bytes

comment:5 Changed at 2012-11-09T06:51:58Z by zooko

Using leasedb this way would facilitate solving #671 — bring back sizelimit (i.e. max consumed, not min free).

comment:6 Changed at 2012-11-21T00:49:35Z by zooko

  • Description modified (diff)
Note: See TracTickets for help on using tickets.