<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bug: changing an app's Redis memory limit does not restart the container, so maxmemory stays at the old value]]></title><description><![CDATA[<p dir="auto">On 9.2.x, changing the Redis memory limit for an app under Services updates the container's cgroup limit right away, but does not restart the Redis container. maxmemory is written when the container starts, so redis keeps running with the value from its previous start.</p>
<p dir="auto">That is harmless when you raise the limit. It is not when you lower it. Two days after lowering one app's Redis from 512 MB to 256 MB:</p>
<pre><code>docker inspect -f '{{.HostConfig.Memory}}' redis-&lt;appid&gt;
268435456

redis-cli config get maxmemory
526385152
</code></pre>
<p dir="auto">With maxmemory-policy noeviction, redis will grow to 502 MB before it starts refusing writes, while the cgroup kills it at 256 MB. So instead of an "OOM command not allowed" error you get a killed container.</p>
<p dir="auto">What made this hard to notice: the very first time you configure an app's Redis, the service does get rebuilt. Only the changes after that don't. A single test therefore looks like it works. Restarting the service by hand afterwards puts maxmemory right again.</p>
<p dir="auto">Would it make sense to restart the service container on a memory limit change, the same way the app container is now rebuilt when its memory limit changes?</p>
]]></description><link>https://forum.cloudron.io/topic/15798/bug-changing-an-app-s-redis-memory-limit-does-not-restart-the-container-so-maxmemory-stays-at-the-old-value</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:27:38 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15798.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Aug 2026 15:49:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug: changing an app's Redis memory limit does not restart the container, so maxmemory stays at the old value on Thu, 06 Aug 2026 17:11:59 GMT]]></title><description><![CDATA[<p dir="auto">Right, this is already fixed now along with the mysql changes . When services are resized, they are now restarted since <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> is making decisions based on the allocated memory - <a href="https://git.cloudron.io/platform/box/-/commit/9b0f8aea0dbf5788d653392ca83874d0aa803503" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/platform/box/-/commit/9b0f8aea0dbf5788d653392ca83874d0aa803503</a></p>
]]></description><link>https://forum.cloudron.io/post/127829</link><guid isPermaLink="true">https://forum.cloudron.io/post/127829</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 06 Aug 2026 17:11:59 GMT</pubDate></item></channel></rss>