732
732
- 3 and 4: limited debug information is written to apt-cacher.err
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)
737
737
- 11: like 5 but all Debug marks are printed to the log, including
738
738
anonymous marks for code flow tracking.
743
743
7.6 Avoid use of apt-cacher-ng for certain hosts
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
751
Acquire::HTTP::Proxy::archive.example.org "DIRECT";
750
752
//or Acquire::HTTP::Proxy::archive.example.org "other.proxy:port"
754
7.7 Avoid caching for certain domains or certain file types
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
761
7.8 How to make big download series faster
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.
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
778
`Acquire::http { Pipeline-Depth "200"; } '
780
there is a higher chance to get the server connection "preheated"
781
before a stall occurs.
752
783
Chapter 8: Troubleshooting
753
784
--------------------------