← Back to team overview

orchestra team mailing list archive

[Bug 887186] Re: squid proxy big and small buckets not functioning correctly

 

Some more possibly relevant information:

$ sudo sh -c 'du -ks /var/spool/squid/small'; grep cache_dir /etc/squid/*.conf
16456   /var/spool/squid/small
cache_dir aufs /var/spool/squid/big 40000 16 256
cache_dir aufs /var/spool/squid/small 40000 16 256 max-size=40M

/var/log/squid/cache.log has:
2011/11/07 09:14:38| Rebuilding storage in /var/spool/squid/big (DIRTY)
2011/11/07 09:14:38| Rebuilding storage in /var/spool/squid/small (CLEAN)
...
2011/11/07 09:14:38| Done reading /var/spool/squid/small swaplog (0 entries)            
2011/11/07 09:14:38| Done reading /var/spool/squid/big swaplog (1465 entries)           
2011/11/07 09:14:38| Finished rebuilding storage from disk.

-- 
You received this bug notification because you are a member of
orchestra, which is subscribed to orchestra in Ubuntu.
https://bugs.launchpad.net/bugs/887186

Title:
  squid proxy big and small buckets not functioning correctly

Status in “orchestra” package in Ubuntu:
  New

Bug description:
  I'm running the oneiric ppa version of orchestra on natty:
  $ dpkg-query --show ubuntu-orchestra-provisioning-server squid
  squid   2.7.STABLE9-2.1ubuntu6
  ubuntu-orchestra-provisioning-server    2.21-0ubuntu1~ppa4

  My /etc/squid/squid.conf file has the following diff against what is in current precise /usr/share/orchestra/conf/squid.conf [1].
  $ diff -wu /tmp/squid.conf /etc/squid/squid.conf
  --- /tmp/squid.conf     2011-11-07 08:59:51.732258352 -0500
  +++ /etc/squid/squid.conf       2011-10-26 16:17:51.320501502 -0400
  @@ -55,6 +55,8 @@
   extension_methods REPORT MERGE MKACTIVITY CHECKOUT
   hosts_file /etc/hosts
   coredump_dir /var/spool/squid
  +
  +# changes over /usr/share/orchestra/conf/squid.conf
   maximum_object_size 750 MB
   cache_dir aufs /var/spool/squid/small 40000 16 256 max-size=40M
   cache_dir aufs /var/spool/squid/big 40000 16 256

  
  I did this:
  sudo sh -c 'du -hs /var/spool/squid/small /var/spool/squid/big'
  [sudo] password for smoser:
  17M     /var/spool/squid/small
  186M    /var/spool/squid/big

  Then, did an apt-get dist-upgrade -d to precise and I see afterwards:
  $ sudo sh -c 'du -hs /var/spool/squid/small /var/spool/squid/big'
  [sudo] password for smoser:
  17M     /var/spool/squid/small
  656M    /var/spool/squid/big

  The big dir grew significantly, while the small dir not at all.
  It seems like our 2 directores are not functioning as they should, as clearly most of that 'apt-get dist-upgrade' would have been under 40M files.

  
  --
  [1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/orchestra/precise/view/head:/provisioning-server/usr/share/orchestra/conf/squid.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/orchestra/+bug/887186/+subscriptions


References