Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-tune squid parameters #1258

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions misc/squid.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# Always revalidate cached content with the origin server
refresh_pattern . 0 100% 0 refresh-ims

# Allow caching of files up to 5GB
maximum_object_size 5 GB
# Set memory cache size
cache_mem 5 GB
# Allow caching of objects up to 200 MB
maximum_object_size 200 MB
# Spool larger than usual objects to disk only
maximum_object_size_in_memory 100 MB
# While permit serving larger objects bypassing cache
reply_body_max_size 500 MB

# Optimizing file hit rate in memory
memory_replacement_policy heap GSDF
# optimizing byte hit rate / network efficiency on disk
cache_replacement_policy heap LFUDA

# Set the cache size to 50GB
# Set the disk cache size to 50GB
# This is default cache location on Debian/Ubuntu package
# Where squid will use 25% more disk space at worst
cache_dir ufs /var/spool/squid 50000 16 256

# Set memory cache size
cache_mem 5 GB