Initial commit
[ta/infra-ansible.git] / roles / allocate_cpu_cores / defaults / main.yml
1 # Copyright 2019 Nokia
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # Number of platform CPUs to allocate per service by default.
16 ncir_default_platform_cpus:
17   default:
18     controller:
19       own: 1
20       shared: 1
21     storage:
22       own: 3
23       shared: 1
24     compute:
25       shared: 1
26     caas_master:
27       own: 2
28     caas_worker:
29       own: 1
30   single:
31     controller:
32       own: 1
33       shared: 1
34     compute:
35       shared: 1
36     caas_master:
37       own: 1
38     caas_worker:
39       own: 1
40   virtual:
41     controller:
42       shared: 2
43     storage:
44       shared: 2
45     compute:
46       shared: 1
47     caas_master:
48       shared: 2
49     caas_worker:
50       shared: 1
51
52 caas_service_profiles:
53   - caas_master
54   - caas_worker
55
56 allocation_fact_file: "/etc/ansible/facts.d/ncir_cpu_allocation.fact"
57
58 cpu_set_mapping:
59   ovs_dpdk:
60     opt: ovs_dpdk_cpus
61   platform:
62     opt: platform_cpus
63   caas_exclusive:
64     opt: exclusive_pool_percentage
65   caas_shared:
66     opt: shared_pool_percentage