Make own CPU allocation for CaaS default CPU pool
[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 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       shared: 1
28     caas_worker:
29       shared: 1
30   single:
31     controller:
32       own: 1
33       shared: 1
34     compute:
35       shared: 1
36     caas_master:
37       shared: 1
38     caas_worker:
39       shared: 1
40   virtual:
41     controller:
42       shared: 2
43     storage:
44       shared: 2
45     compute:
46       shared: 1
47     caas_master:
48       shared: 1
49     caas_worker:
50       shared: 1
51
52 caas_default_pool_cpus:
53   default:
54     caas_master:
55       own: 2
56     caas_worker:
57       own: 1
58   single:
59     caas_master:
60       own: 2
61     caas_worker:
62       own: 1
63   virtual:
64     caas_master:
65       own: 2
66     caas_worker:
67       own: 1
68
69 caas_service_profiles:
70   - caas_master
71   - caas_worker
72
73 allocation_fact_file: "/etc/ansible/facts.d/cpu_allocation.fact"
74
75 cpu_set_mapping:
76   ovs_dpdk:
77     opt: ovs_dpdk_cpus
78   platform:
79     opt: platform_cpus
80   caas_exclusive:
81     opt: exclusive_pool_percentage
82   caas_shared:
83     opt: shared_pool_percentage
84
85 caas_cpu_pool_share_default: 50