7.2. Configuring filters and weights for the Compute scheduler service

You need to configure the filters and weights for the Compute scheduler service to determine the initial set of Compute nodes on which to launch an instance.

Procedure

  1. Open your Compute environment file.
  2. Add the filters you want the scheduler to use to the NovaSchedulerDefaultFilters parameter, for example:

    parameter_defaults:
      NovaSchedulerDefaultFilters: AggregateInstanceExtraSpecsFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter
  3. Specify which attribute to use to calculate the weight of each Compute node, for example:

    parameter_defaults:
      ComputeExtraConfig:
        nova::config::nova_config:
          DEFAULT/scheduler_weight_classes:
            value: nova.scheduler.weights.all_weighers
  4. Save the updates to your Compute environment file.
  5. Add your Compute environment file to the stack with your other environment files and deploy the overcloud:

    (undercloud)$ openstack overcloud deploy --templates \
     -e [your environment files] \
     -e /home/stack/templates/<compute_environment_file>.yaml

Additional resources