Community discussions

MikroTik App
 
Cloudisparu
just joined
Topic Author
Posts: 7
Joined: Thu Jun 21, 2018 8:05 pm

Container level RAM limit

Fri Sep 13, 2024 2:48 pm

Hi All,

Currently, we can configure a threshold for the total RAM consumed by all the running containers.

It's good, that limitation keep the router robust itself when facing OOM problems caused by an arbitrary container.

But in a multiple containers setup, It would be better to implement a per-container level MEM limit(aka: like docker). So that we could configure a reasonable threshold for each container independently.
For instance, If 2 of 6 containers have potential memory leak problems. Independent limits could let the kernel kill thoes containers at early stage, not until on of them eat up the memory and reaches the total threshold.
 
User avatar
JohnTRIVOLTA
Member
Member
Posts: 399
Joined: Sun Dec 25, 2016 2:05 pm
Location: BG/Sofia

Re: Container level RAM limit

Fri Sep 13, 2024 4:03 pm

container/config/set ram-high=
Is this setting not enough?
 
User avatar
tangent
Forum Guru
Forum Guru
Posts: 1656
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Container level RAM limit

Fri Sep 13, 2024 7:03 pm

container/config/set ram-high=

OP addressed that in the first paragraph; it sets a single aggregate limit for all containers. OP wants a per-container limit. It is one of many reasons calling container.npk “docker” misleads more than helps.

The only path forward is to file a formal request for the feature and hope they agree your use case is worth supporting.
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 411
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: Container level RAM limit

Wed Nov 20, 2024 6:15 pm

We have added possibility to write swap to external drive, in some cases this may help with OOM

Who is online

Users browsing this forum: No registered users and 5 guests