Modify control groups for a single node

Modify control groups for a single nodeΒΆ

If you want to change the control group settings on a single node, you must edit the control groups configuration file /etc/cgconfig.conf, as well as create, if needed, and configure the /etc/cgrules.conf file. You can modify control groups before or after you deploy an OpenStack environment.

To modify control groups for a single node:

  1. Log in to the CLI of corresponding node.

  2. Open the /etc/cgconfig.conf file for editing.

  3. Apply the required changes.

  4. Save and exit.

  5. Add the corresponding parameters to the /etc/cgrules.conf file.

    Example:

    * :keystone-api   cpu   keystone-api
    * :mysqld   cpu   mysqld
    
  6. Restart cgconfigparser:

    service cgconfigparser restart
    
  7. For each running process, type:

    cgclassify 'pidof -x <name_of_process>'
    
  8. Restart cgrulesengd:

    service cgrulesengd restart
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

Contents