Merge lp:~hloeung/ubuntu-repository-cache/reduce-squid-memory-usage into lp:ubuntu-repository-cache

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: 349
Merged at revision: 349
Proposed branch: lp:~hloeung/ubuntu-repository-cache/reduce-squid-memory-usage
Merge into: lp:ubuntu-repository-cache
Diff against target: 17 lines (+7/-1)
1 file modified
templates/squid-deb-proxy/squid-deb-proxy.conf (+7/-1)
To merge this branch: bzr merge lp:~hloeung/ubuntu-repository-cache/reduce-squid-memory-usage
Reviewer Review Type Date Requested Status
Barry Price Approve
Canonical IS Reviewers Pending
Review via email: mp+427250@code.launchpad.net

Commit message

Tune and reduce memory usage by Squid to avoid being OOM killed

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Barry Price (barryprice) wrote :

LGTM +1

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 349

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/squid-deb-proxy/squid-deb-proxy.conf'
2--- templates/squid-deb-proxy/squid-deb-proxy.conf 2022-05-23 03:30:57 +0000
3+++ templates/squid-deb-proxy/squid-deb-proxy.conf 2022-07-22 01:57:22 +0000
4@@ -52,7 +52,13 @@
5
6 # tweaks to speed things up
7 {{ Cache_Memory_Config }}
8-maximum_object_size_in_memory 30 MB
9+
10+# Reduce memory usage, memory caching is less relevant as instance storage is much faster than it was a few years ago.
11+maximum_object_size_in_memory 2 MB
12+# We also only want objects in memory if they're already on disk and seeing cache hits.
13+memory_cache_mode disk
14+# Don't have squid keeping pools of allocated (but unused) memory.
15+memory_pools off
16
17 collapsed_forwarding on
18

Subscribers

People subscribed via source and target branches