Sabtu, 21 Mei 2011

Refresh Pattern Squid yang Effisien

Definisi Efisien disini: menghemat bandwidth, menghabiskan space cache, baik untuk persistent dan koneksi putus-putus.

Fact: Squid-cache umumnya hanya menghemat 20% s/d 30% dari bandwidth yang semestinya digunakan.

baca dulu refresh_pattern pada http://squid.visolve.com/squid/squid24s1/tuning.htm

Saya via posting ini mencoba membuat dokumentasi dari refresh-pattern directive yang hemat baris, hemat cara, dan efisien.

refresh_pattern -i \.(jp?g|gif|pnp|png|?bm?)$ 10080 50% 43200 ignore-reload override-expire override-lastmod

refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims


67ywe5yusr5tgys45y

0 komentar: