| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.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. |
| |
| data_types: |
| |
| tosca.datatypes.compute.Container.Architecture.CPUAllocation: |
| _extensions: |
| shorthand_name: Container.Architecture.CPUAllocation # seems to be a mistake in the spec; the norm is to add a "Container.Architecture." prefix |
| type_qualified_name: tosca:Container.Architecture.CPUAllocation |
| specification: tosca-simple-nfv-1.0 |
| specification_section: 8.3.1 |
| description: >- |
| Granular CPU allocation requirements for NFV workloads. |
| derived_from: tosca.datatypes.Root |
| properties: |
| cpu_affinity: |
| description: >- |
| Describes whether vCPU need to be pinned to dedicated CPU core or shared dynamically. |
| type: string |
| constraints: |
| - valid_values: [ shared, dedicated ] |
| required: false |
| thread_allocation: |
| description: >- |
| Describe thread allocation requirement. |
| type: string |
| constraints: |
| - valid_values: [ avoid, isolate, separate, prefer ] |
| required: false |
| socket_count: |
| description: >- |
| Number of CPU sockets. |
| type: integer |
| required: false |
| core_count: |
| description: >- |
| Number of cores per socket. |
| type: integer |
| required: false |
| thread_count: |
| description: >- |
| Number of threads per core. |
| type: integer |
| required: false |
| |
| tosca.datatypes.compute.Container.Architecture.NUMA: |
| _extensions: |
| shorthand_name: Container.Architecture.NUMA # ARIA NOTE: seems to be a mistake in the spec; the norm is to add a "Container.Architecture." prefix |
| type_qualified_name: tosca:Container.Architecture.NUMA |
| specification: tosca-simple-nfv-1.0 |
| specification_section: 8.3.2 |
| specification_url: 'http://docs.oasis-open.org/tosca/tosca-nfv/v1.0/csd03/tosca-nfv-v1.0-csd03.html#_Toc447714697' |
| description: >- |
| Granular Non-Uniform Memory Access (NUMA) topology requirements for NFV workloads. |
| derived_from: tosca.datatypes.Root |
| properties: |
| id: |
| description: >- |
| CPU socket identifier. |
| type: integer |
| constraints: |
| - greater_or_equal: 0 |
| required: false |
| vcpus: |
| description: >- |
| List of specific host cpu numbers within a NUMA socket complex. |
| |
| TODO: need a new base type, with non-overlapping, positive value validation (exclusivity), |
| type: map |
| entry_schema: |
| type: integer |
| required: false |
| mem_size: |
| description: >- |
| Size of memory allocated from this NUMA memory bank. |
| type: scalar-unit.size |
| constraints: |
| - greater_or_equal: 0 MB |
| required: false |