V
V
Valery Alekseev2019-04-02 19:04:56
LXC
Valery Alekseev, 2019-04-02 19:04:56

Automatic distribution of lxc containers across cores?

Hello. There is a running server, several processes are spinning on it, which in total consume an average of 50% of the total CPU. The system automatically distributes these processes among the cores.
I raised the container via lxd, assigned limits.cpu 2 to it. As a result, it turned out that the container is randomly bound to two cores and it turns out that if some process outside the container hits these cores, then this load is visible in the container.
Tell me how to set up the distribution of the container across the cores so that it automatically uses more free ones, and also has priority over other processes within the physical system. servers?
cpu download example prntscr.com/n6hpl5
Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2019-04-02
@Sanes

In LXD, you cannot specify specific kernels. You can definitely do it in OpenVZ 7.
The latest version has priorities for CPU, disk and network.
In general, take a steam bath in vain, the system is not stupid, it will figure out how to work with the CPU correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question