Filippo Giunchedi has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/367373 )

Change subject: thumbor: bump MemoryLimit to 15%
......................................................................


thumbor: bump MemoryLimit to 15%

The memory cgroup is a blunt tool, namely all memory (including caches) is
limited by the setting. The 1G limit caused thumbor instances and their
subprocesses to often swap and possibly trigger an OOM killer.

Bump the limit to 15% of system memory instead to give more room for buffers,
caches and so on and limit swap activity.

Bug: T121388
Change-Id: I772af48ff30e7464eba47ddba50844c09d661b2d
---
M modules/thumbor/templates/initscripts/thum...@.systemd.erb
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ema: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Filippo Giunchedi: Looks good to me, approved



diff --git a/modules/thumbor/templates/initscripts/thum...@.systemd.erb 
b/modules/thumbor/templates/initscripts/thum...@.systemd.erb
index c961612..25408c8 100644
--- a/modules/thumbor/templates/initscripts/thum...@.systemd.erb
+++ b/modules/thumbor/templates/initscripts/thum...@.systemd.erb
@@ -10,7 +10,7 @@
 PrivateTmp=yes
 Restart=always
 SyslogIdentifier=thumbor@%i
-MemoryLimit=1G
+MemoryLimit=15%
 
 [Install]
 WantedBy=multi-user.target

-- 
To view, visit https://gerrit.wikimedia.org/r/367373
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I772af48ff30e7464eba47ddba50844c09d661b2d
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Gilles <gdu...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to