diff options
author | 2017-03-25 04:00:47 +0000 | |
---|---|---|
committer | 2017-03-25 04:00:47 +0000 | |
commit | c97a1907549f841cc5b2d2efeacea7c703b0de3f (patch) | |
tree | 54fc3eebbedbae8f430810abab62a5722365aec0 /ansible/roles/scheduler_default_filters_setup | |
parent | 87ad2e4366889f835d7608c88990cba12013f4c4 (diff) | |
parent | 1cdfec0e2e8caa12ff5cd65d3f5451a4e59d26f5 (diff) |
Merge "Add CPU pinning support for node context" into stable/danube
Diffstat (limited to 'ansible/roles/scheduler_default_filters_setup')
-rw-r--r-- | ansible/roles/scheduler_default_filters_setup/tasks/main.yaml | 15 | ||||
-rw-r--r-- | ansible/roles/scheduler_default_filters_setup/vars/main.yaml | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/scheduler_default_filters_setup/tasks/main.yaml b/ansible/roles/scheduler_default_filters_setup/tasks/main.yaml new file mode 100644 index 000000000..5429ca91b --- /dev/null +++ b/ansible/roles/scheduler_default_filters_setup/tasks/main.yaml @@ -0,0 +1,15 @@ +--- +############################################################################## +# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +- name: add scheduler_default_filters for cpu pinning + lineinfile: + dest: /etc/nova/nova.conf + insertafter: 'DEFAULT' + line: 'scheduler_default_filters={{cpu_pin_filters}}' diff --git a/ansible/roles/scheduler_default_filters_setup/vars/main.yaml b/ansible/roles/scheduler_default_filters_setup/vars/main.yaml new file mode 100644 index 000000000..47b944470 --- /dev/null +++ b/ansible/roles/scheduler_default_filters_setup/vars/main.yaml @@ -0,0 +1 @@ +cpu_pin_filters: NUMATopologyFilter,AggregateInstanceExtraSpecsFilter |