Bonjour,
Je suis actuellement à l’étranger avec une conexion 5kb/s sur une wheezy. J’essaie d’utiliser squid3 comme cache pour améliorer cette connexion désastreuse.
Voici le paramétrage basique que j’utilise:
http_port 3128 transparent
cache_mem 1000 MB
maximum_object_size 20 MB
acl nuestra_red src 127.0.0.1/32
acl redlocal src 127.0.0.1/32
http_access allow nuestra_red
http_access allow redlocal
cache_dir ufs /home/squid3 1000 16 256
visible_hostname localhost
#dns_nameserves 200.55.128.3 200.55.128.4
#dns_nameservers 212.27.40.240 212.27.40.241
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
Le log lorsque je lance squid:
2014/01/07 23:55:22| Open FD UNSTARTED 7 DNS Socket IPv6
2014/01/07 23:55:22| Open FD READ/WRITE 8 DNS Socket IPv4
2014/01/07 23:55:22| Squid Cache (Version 3.1.20): Exiting normally.
2014/01/07 23:55:23| Starting Squid Cache version 3.1.20 for i486-pc-linux-gnu...
2014/01/07 23:55:23| Process ID 20512
2014/01/07 23:55:23| With 65535 file descriptors available
2014/01/07 23:55:23| Initializing IP Cache...
2014/01/07 23:55:23| DNS Socket created at [::], FD 7
2014/01/07 23:55:23| DNS Socket created at 0.0.0.0, FD 8
2014/01/07 23:55:23| Adding nameserver 200.55.128.3 from /etc/resolv.conf
2014/01/07 23:55:23| Adding nameserver 200.55.128.4 from /etc/resolv.conf
2014/01/07 23:55:23| Unlinkd pipe opened on FD 13
2014/01/07 23:55:23| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2014/01/07 23:55:23| Store logging disabled
2014/01/07 23:55:23| Swap maxSize 1024000 + 1024000 KB, estimated 157538 objects
2014/01/07 23:55:23| Target number of buckets: 7876
2014/01/07 23:55:23| Using 8192 Store buckets
2014/01/07 23:55:23| Max Mem size: 1024000 KB
2014/01/07 23:55:23| Max Swap size: 1024000 KB
2014/01/07 23:55:23| Version 1 of swap file with LFS support detected...
2014/01/07 23:55:23| Rebuilding storage in /home/squid3 (CLEAN)
2014/01/07 23:55:23| Using Least Load store dir selection
2014/01/07 23:55:23| Current Directory is /
2014/01/07 23:55:23| Loaded Icons.
2014/01/07 23:55:23| Accepting HTTP connections at [::]:3128, FD 16.
2014/01/07 23:55:23| HTCP Disabled.
2014/01/07 23:55:23| Squid plugin modules loaded: 0
2014/01/07 23:55:23| Adaptation support is off.
2014/01/07 23:55:23| Ready to serve requests.
2014/01/07 23:55:24| Done reading /home/squid3 swaplog (2326 entries)
2014/01/07 23:55:24| Finished rebuilding storage from disk.
2014/01/07 23:55:24| 2326 Entries scanned
2014/01/07 23:55:24| 0 Invalid entries.
2014/01/07 23:55:24| 0 With invalid flags.
2014/01/07 23:55:24| 2326 Objects loaded.
2014/01/07 23:55:24| 0 Objects expired.
2014/01/07 23:55:24| 0 Objects cancelled.
2014/01/07 23:55:24| 0 Duplicate URLs purged.
2014/01/07 23:55:24| 0 Swapfile clashes avoided.
2014/01/07 23:55:24| Took 0.08 seconds (30780.63 objects/sec).
2014/01/07 23:55:24| Beginning Validation Procedure
2014/01/07 23:55:24| Completed Validation Procedure
2014/01/07 23:55:24| Validated 4677 Entries
2014/01/07 23:55:24| store_swap_size = 19712
2014/01/07 23:55:24| storeLateRelease: released 0 objects
Mais je ne vois pas grande amélioration. Par exemple lorsque je recharge une page ça prend autant de temps qu’au premier chargement, lorsque je travaille hors connexion je m’attendrais à voir des pages que j’ai en cache mais ce n’est pas le cas, je ne vois aucune information défiler dans access.log…
Merci pour vos conseils