https://www.robata.org/docs/squid/Reference/squid3.4.0.3/cache_dir.html
ちょっと試験的にsquidを導入した時のメモ。
squidにはディスクキャッシュを利用することができるが、いくつかストレージタイプを変更できる。
よく使われるのはufs。
cache_dir ufs Directory-Name Mbytes L1 L2 [options]
その次は非同期なaufs。
cache_dir aufs Directory-Name Mbytes L1 L2 [options]
別プロセスを起動する形のdiskd。
cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
データベース形式のrock。
cache_dir rock Directory-Name Mbytes <max-size=bytes> [options]
rawデバイスを利用するcoss
があったが、不安定のためsquid3から削除された。
ちなみにrockを使用しようとした際、以下のエラーで悩まされていましたが、/var/run/squid
のパーミッションが違っていたことが原因でした。
FATAL: Rock cache_dir at /var/cache/squid/rock failed to open db file: (11) Resource temporarily unavailable
Squid Cache (Version 3.4.11): Terminated abnormally.
tmpfile.d
の設定を見直すなどが必要でした。
D /var/run/squid 0755 nobody nobody -
ハイパフォーマンスWebサイト ―高速サイトを実現する14のルール
posted with AZlink at 2015.1.18
Steve Souders,スティーブ サウダーズ,武舎 広幸,福地 太郎,武舎 るみ
オライリージャパン
売り上げランキング: 45286
オライリージャパン
売り上げランキング: 45286
Squid Proxy Server 3.1: Beginner’s Guide: Improve the Performance of Your Network Using the Caching and Access Control Capabilities of Squid
posted with AZlink at 2015.1.18
Kulbir Saini
Packt Publishing
売り上げランキング: 85059
Packt Publishing
売り上げランキング: 85059