CPU limiting?

Currently reading
CPU limiting?

245
47
NAS
DS918+, DS414j
Operating system
  1. Linux
  2. Windows
  3. other
Mobile operating system
  1. Android
Is it possible to limit container access to CPU?

I've tried:
Code:
    deploy:
      resources:
        limits:
          memory: 500m
          cpus: '0.10'
But I get the following error:
Error response from daemon: NanoCPUs can not be set, as your kernel does not support CPU CFS scheduler or the cgroup is not mounted.
It works if I only limit the memory.

Thanks in advance!
 
Nope, not going to work on a Syno. The kernel lacks required modules. This will work on ever other Linux system like a charme.

Kind of related, but still unrelated: the UI provides a way to configure at least a cpu priority for a container (low/mid/high), but I have no idea to wich compose configuration items it translates (and I kind of don't care enough to find out).
-- post merged: --

Also the deploy item either requires the docker compose docker cli plugin or a very recent docker-compose version. Using the cli plugin has some advantages, as it supports more of the configuration items that were previously for swarm stack deployments only.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top