summaryrefslogtreecommitdiffstats
path: root/docs/Chapter5/Tosca/ONAP HPA Requirements.rst
blob: c99c3e253faf5040bd2fe8768203abbc4f2bb432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
.. Modifications Copyright © 2017-2018 AT&T Intellectual Property.

.. Licensed under the Creative Commons License, Attribution 4.0 Intl.
   (the "License"); you may not use this documentation except in compliance
   with the License. You may obtain a copy of the License at

.. https://creativecommons.org/licenses/by/4.0/

.. Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


HPA Requirements
----------------

1. SR-IOV Passthrought

Definitions of SRIOV_Port are necessary if VDU supports SR-IOV. Here is
an example.

.. code-block:: yaml

  node_templates:

  vdu_vNat:

  SRIOV_Port:

  attributes:

  tosca_name: SRIOV_Port

  properties:

  virtual_network_interface_requirements:

  - name: sriov

  support_mandatory: false

  description: sriov

  requirement:

  SRIOV: true

  role: root

  description: sriov port

  layer_protocol: ipv4

  requirements:

  - virtual_binding:

  capability: virtual_binding

  node: vdu_vNat

  relationship:

  type: tosca.relationships.nfv.VirtualBindsTo

  - virtual_link:

  node: tosca.nodes.Root

  type: tosca.nodes.nfv.VduCpd

  substitution_mappings:

  requirements:

  sriov_plane:

  - SRIOV_Port

  - virtual_link

  node_type: tosca.nodes.nfv.VNF.vOpenNAT


2. Hugepages

Definitions of mem_page_size as one property shall be added to
Properties and set the value to large if one VDU node supports
huagepages. Here is an example.

.. code-block:: yaml

  node_templates:

  vdu_vNat:

  Hugepages:

  attributes:

  tosca_name: Huge_pages_demo

  properties:

  mem_page_size:large


3. NUMA (CPU/Mem)

Likewise, we shall add definitions of numa to
requested_additional_capabilities if we wand VUD nodes to support
NUMA. Here is an example.

.. code-block:: yaml

  topology_template:

  node_templates:

  vdu_vNat:

  capabilities:

  virtual_compute:

  properties:

  virtual_memory:

  numa_enabled: true

  virtual_mem_size: 2 GB

  requested_additional_capabilities:

  numa:

  support_mandatory: true

  requested_additional_capability_name: numa

  target_performance_parameters:

  hw:numa_nodes: "2"

  hw:numa_cpus.0: "0,1"

  hw:numa_mem.0: "1024"

  hw:numa_cpus.1: "2,3,4,5"

  hw:numa_mem.1: "1024"


4. Hyper-Theading

Definitions of Hyper-Theading are necessary as one of
requested_additional_capabilities of one VUD node if that node
supports Hyper-Theading. Here is an example.

.. code-block:: yaml

  topology_template:

  node_templates:

  vdu_vNat:

  capabilities:

  virtual_compute:

  properties:

  virtual_memory:

  numa_enabled: true

  virtual_mem_size: 2 GB

  requested_additional_capabilities:

  hyper_threading:

  support_mandatory: true

  requested_additional_capability_name: hyper_threading

  target_performance_parameters:

  hw:cpu_sockets : "2"

  hw:cpu_threads : "2"

  hw:cpu_cores : "2"

  hw:cpu_threads_policy: "isolate"


5. OVS+DPDK

Definitions of ovs_dpdk are necessary as one of
requested_additional_capabilities of one VUD node if that node
supports dpdk. Here is an example.

.. code-block:: yaml

  topology_template:

  node_templates:

  vdu_vNat:

  capabilities:

  virtual_compute:

  properties:

  virtual_memory:

  numa_enabled: true

  virtual_mem_size: 2 GB

  requested_additional_capabilities:

  ovs_dpdk:

  support_mandatory: true

  requested_additional_capability_name: ovs_dpdk

  target_performance_parameters:

  sw:ovs_dpdk: "true"