Configure control groups

Configure control groupsΒΆ

You can configure cgroups for multiple nodes before you deploy an OpenStack environment by editing the settings_1.yaml file on the Fuel Master node.

To configure control groups:

  1. Log in to the Fuel Master node CLI.

  2. Download the Fuel configuration:

    fuel settings --env-id <id> --download
    
  3. Open the settings_1.yaml file for editing.

  4. Add the required services to the cgroups section.

    Example:

    editable:
     cgroups:
       metadata:
         always_editable: true
         group: general
         label: Cgroups conguration for services
         restrictions:
           - action: hide
             condition: 'true'
             weight: 90
     mysqld:
       label: mysqld
       type:  text
       value: '{"memory":{"memory.swappiness":0,
              "memory.soft_limit_in_bytes":"%5, 10, 20"}}'
     beam.smp:
       label: beam.smp
       type:  text
       value: '{"memory":{"memory.swappiness":0}}'
     cinder-api:
       label: cinder-api
       type:  text
       value: '{"blkio":{"blkio.weight":500}}'
     keystone-api:
       label: keystone-api
       type:  text
       value: '{"cpu":{"cpu.shares":70}}'
     neutron-server:
       label: neutron-server
       type:  text
      value: '{"memory":{"memory.soft_limit_in_bytes":"%total, min, max"}}'
    
  5. Save and exit.

  6. Upload the new configuration file to Fuel:

    fuel settings --env-id <env_id> --upload
    
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