Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I prevent one container from consuming all of the CPU capacity, preventing other workloads from running properly?

0
Posted

How can I prevent one container from consuming all of the CPU capacity, preventing other workloads from running properly?

0

Use the resource management features of Solaris. This requires using some combination of the Fair Share Scheduler, CPU caps, assigned (’dedicated’) CPUs, and/or [Dynamic] Resource Pools features. Fair Share Scheduler: FSS guarantees a minimum amount of CPU utilization, so it doesn’t waste CPU cycles. Excessive CPU use is only prevented if there is contention for CPU resources. Minima are specified by “shares” and enforced by the Fair Share Scheduler. You can assign 100 shares to each of two workloads, 200 shares to a third workload, and 400 shares to the global zone. The first two workloads will get at least 1/8 of the CPUs’ capacity, if they need it, and the global zone will get at least 1/2 of the CPUs’ capacity, if it needs it. If only one Container wants to use the CPUs, it will be able to use all of the processing capacity of the system. You should give the global zone a quantity of shares similar to the largest quantity given to any Container, to ensure that you can manage the Co

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123