Results 1 to 2 of 2

Thread: LXC: Can I guarantee a certain level of CPU resources to a given container

  1. #1
    Join Date
    Oct 2011
    Beans
    13

    Question LXC: Can I guarantee a certain level of CPU resources to a given container

    We're going to use LXC to multi-purpose our hardware while keeping the various applications easy to manage, develop, upgrade, and logically segregated.

    What I want to know is if I can guarantee certain resources, such as CPU, to a certain container.

    We have one process which will run in its own container that is a critical component of our application infrastructure. I'd like to dual purpose that box and let a non-critical, but resource-intensive, component (the worker node) reside in a separate container on the same hardware, but to be safe I want to guarantee that, when the critical component needs CPU, it gets it, at the expense of the non critical component.


    I'd rather do this at the container level rather than jury-rigging the application with nice or something like that because this configuration is only valid on one piece of hardware, on other boxes the worker node stands alone.

  2. #2
    Join Date
    Oct 2011
    Beans
    13

    Re: LXC: Can I guarantee a certain level of CPU resources to a given container

    After further research it seems that LXC uses Control Groups, and control groups would be used to limit the cpu or IO utilization per container. It seems that these settings can be made in the LXC config file directly, though I haven't yet found a resource that calls out the exact format I should use in this file.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •