~ubuntu-branches/ubuntu/quantal/apt-cacher-ng/quantal-backports

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2010-07-28 01:17:33 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20100728011733-kocsb0jjhzu76ees
Tags: 0.5.1-1
* New upstream version
  + header inclusion cleanup (closes: #590291)
  + kfreebsd related fixes
  + long outstanding user interface fixes and various regression fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
        -  3 and 4: limited debug information is written to apt-cacher.err
733
733
 
734
734
        -  5: much more debug information written to apt-cacher.err
735
 
           (requires a special binary, see above)
 
735
           (requires a special debug binary, see section 8.2)
736
736
 
737
737
        -  11: like 5 but all Debug marks are printed to the log, including
738
738
           anonymous marks for code flow tracking.
742
742
 
743
743
   7.6 Avoid use of apt-cacher-ng for certain hosts
744
744
 
745
 
       Sometimes clients might not to use apt-cacher-ng for certain hosts
746
 
       while accessing all others through it. Such hosts can be marked for
747
 
       direct access in apt configuration, e.g. in _/etc/apt/apt.conf_:
 
745
       Sometimes clients might need to access some remote side directly
 
746
       to do some non-file-transfer oriented work but still passing the
 
747
       data through configured apt-cacher-ng proxy. Such remote hosts
 
748
       can be marked for direct access in apt configuration, e.g. in
 
749
       _/etc/apt/apt.conf_:
748
750
 
749
751
         Acquire::HTTP::Proxy::archive.example.org "DIRECT";
750
752
         //or Acquire::HTTP::Proxy::archive.example.org  "other.proxy:port"
751
753
 
 
754
   7.7 Avoid caching for certain domains or certain file types
 
755
 
 
756
       Sometimes clients to download through apt-cacher-ng but the data
 
757
       shall not be stored on the harddisk of the server. To get it, use
 
758
       the DontCache directive (see examples for details) to define such
 
759
       files.
 
760
 
 
761
   7.8 How to make big download series faster
 
762
 
 
763
       Symptom: A common situation is a periodic download of hundreds of
 
764
       files through apt-cacher-ng where just a half is present in the
 
765
       cache. Although caching works fine, there are visible delays on some
 
766
       files during the download.
 
767
 
 
768
       Possible cause and relief: the download from the real mirror gets
 
769
       interrupted while apt-cacher-ng delivers a set of files from the
 
770
       internal cache. While the connection is suspended, it times out and
 
771
       needs to be recreated when a miss occurs, i.e. apt-cacher-ng has to
 
772
       fetch more from the remote mirror. A workaround to this behaviour
 
773
       is simple, provided that the remote mirror can handle long request
 
774
       queues: set the pipelining depth to a very high value in apt.conf
 
775
       file or one of its replacement files in /etc/apt/apt.conf.d/. With
 
776
       something like:
 
777
 
 
778
       `Acquire::http { Pipeline-Depth "200"; } '
 
779
 
 
780
       there is a higher chance to get the server connection "preheated"
 
781
       before a stall occurs.
 
782
 
752
783
Chapter 8: Troubleshooting
753
784
--------------------------
754
785