New Feature Request: User configurable weight to adjust squid cache directory size

Bug #1642119 reported by Thomas Cuthbert
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Fix Released
Undecided
Haw Loeung
ubuntu-repository-cache (Juju Charms Collection)
Fix Released
Medium
Haw Loeung

Bug Description

Currently the aufs squid cache sizing is dynamically evaluated by the charm. We have had instances where this generated value causes our disks to creep above our OK baseline in Nagios. It would be great if we could skew this value with a user configurable weighting in the charm config.

Tags: canonical-is

Related branches

Revision history for this message
Thomas Cuthbert (tcuthbert) wrote :

FWIW: this is impacting us in production as the alerts are coming through as CRITICAL.

Paul Gear (paulgear)
tags: added: canonical-is
Chris Glass (tribaal)
Changed in ubuntu-repository-cache (Juju Charms Collection):
importance: Undecided → Medium
Revision history for this message
Paul Gear (paulgear) wrote :

This is causing us some issues in production; squid occasionally goes over 90% of disk usage (which means we get alerts from Nagios), and the only way to influence squid's usage it is to edit squid-deb-cache.conf, which means on the next config-changed hook the changes will be overwritten.

Revision history for this message
Michael Foley (foli) wrote :

Even if it gets reverted, reducing the value in /etc/squid-deb-proxy/squid-deb-proxy.conf and reloading squid-deb-proxy can temporarily solve the disk alert as then squid prunes disk usage.

I used something like:
cache_dir aufs /srv/ubuntu-repository-cache/squid 294761 16 256
one a 315G disk.

Revision history for this message
Thomas Cuthbert (tcuthbert) wrote :

This has happened to us again on a production cloud archive mirror. These are critical production services.

Haw Loeung (hloeung)
no longer affects: ubuntu-repository-cache
Changed in ubuntu-repository-cache (Juju Charms Collection):
status: New → Fix Committed
assignee: nobody → Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: New → Fix Committed
assignee: nobody → Haw Loeung (hloeung)
Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: Fix Committed → Fix Released
Changed in ubuntu-repository-cache (Juju Charms Collection):
status: Fix Committed → Fix Released
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.