Add a disk resource usage report for distributions

Bug #782273 reported by Francis J. Lacoste
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

We need a way of knowing the disk resources used by a distribution (ideally split by series). This is especially important for derived distributions so that we know the amount of resources used.

Tags: derivation
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Are you talking about an internal lpstats graph, or something IN Launchpad?

Changed in launchpad:
status: Triaged → Incomplete
Revision history for this message
Robert Collins (lifeless) wrote :

Either would do the job; in-LP would be easier to maintain I suspect.

Changed in launchpad:
status: Incomplete → Triaged
Revision history for this message
Julian Edwards (julian-edwards) wrote :

There's an asynchronously-loaded JS portlet on the PPA index page that gives repo size. The same page template is used for Copy Archives but the portlet had to be disabled because it consistently times out on distro-sized archives.

Therefore, this will need some very careful optimisation to work.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 782273] Re: Add a disk resource usage report for distributions

On Tue, Aug 9, 2011 at 11:09 PM, Julian Edwards
<email address hidden> wrote:
> There's an asynchronously-loaded JS portlet on the PPA index page that
> gives repo size.  The same page template is used for Copy Archives but
> the portlet had to be disabled because it consistently times out on
> distro-sized archives.
>
> Therefore, this will need some very careful optimisation to work.

It times out on PPAs too ;) bug 739070

I suspect we want to cache the quota usage rather than generating from
first principles each time.

Gavin Panella (allenap)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in launchpad:
assignee: Gavin Panella (allenap) → nobody
status: In Progress → Triaged
Revision history for this message
Gavin Panella (allenap) wrote :

I extracted a script (attached) to experiment with. It contains a
function that's based on ArchiveView.repository_usage, but with some
changes around the quota calculations (authorized_size can be None,
which cannot be used for arithmetic in this version of reality).

The LOSAs sprinting this week so Julian ran this on dogfood, but the
performance was *terrible*. Queries were taking multiple minutes to
complete. It looked almost as though they were just hanging, but
Julian reckoned it was thrashing the disk.

This needs further investigation, and probably with a lot of help from
the LOSAs, so I'm putting this back on the pile until next week when
the LOSAs are fully available once again.

Revision history for this message
Robert Collins (lifeless) wrote :

Yes, it would be terrible - see the timeout bug I linked too that is
doing precisely this on *one* archive, let alone all.

Further, that script uses the oop layer, so you are doing thousands of
complete table scans on LFA, which will be exacerbating things
something chronic :)

Note that the report can sensibly be in LP itself - it doesn't need to
be a chart showing all distros - just showing the portlet for each
distro would meet our initial needs.

Changed in launchpad:
importance: High → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.