Skip to content
Snippets Groups Projects
Commit 2402e36e authored by rahulkumarr's avatar rahulkumarr
Browse files

This nsd and vnfs can be used to test Service KPI based scaling feat

parent c29571ff
Branches poc-osm-ltv
No related tags found
1 merge request!232Feature 11016: Add nsd and vnfd descriptor for testing Service KPI Metric Based Scaling of VNF using exporter endpoint in NGSA
Pipeline #15660 failed with stage
in 1 minute and 23 seconds
nsd:
nsd:
- description: Simple NS with a single VNF and a single VL
df:
- id: default-df
vnf-profile:
- id: '1'
virtual-link-connectivity:
- constituent-cpd-id:
- constituent-base-element-id: '1'
constituent-cpd-id: vnf-cp0-ext
virtual-link-profile-id: mgmtnet
vnfd-id: hackfest_basic-vnf
id: hackfest_basic-ns
name: hackfest_basic-ns
version: '1.0'
virtual-link-desc:
- id: mgmtnet
mgmt-network: false
vim-network-name: external
vnfd-id:
- hackfest_basic-vnf
hackfest_basic_service_kpi_ns/icons/osm.png

54.6 KiB

#cloud-config
password: osm2022
chpasswd: { expire: False }
ssh_pwauth: True
runcmd:
- wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
- tar xzvf node_exporter-0.18.1.linux-amd64.tar.gz
- nohup ./node_exporter-0.18.1.linux-amd64/node_exporter &
- job_name: '{{ JOB_NAME }}'
static_configs:
- targets:
- {{ TARGET_IP }}:{{TARGET_PORT}}
metrics_path: {{ METRIC_PATH }}
metric_relabel_configs:
- source_labels: [__name__]
regex: '(.*)'
replacement: 'osm_${1}'
target_label: __name__
vnfd:
description: A basic VNF descriptor w/ one VDU
df:
- id: default-df
instantiation-level:
- id: default-instantiation-level
vdu-level:
- number-of-instances: 1
vdu-id: hackfest_basic-VM
vdu-profile:
- id: hackfest_basic-VM
min-number-of-instances: 1
max-number-of-instances: 3
exporters-endpoints:
metric-path: /metrics
metric-port: 9100
external-connection-point-ref: vnf-cp0-ext
scaling-aspect:
- aspect-delta-details:
deltas:
- id: vdu_autoscale-delta
vdu-delta:
- id: hackfest_basic-VM
number-of-instances: "1"
id: vdu_autoscale
max-scale-level: 1
name: vdu_autoscale
scaling-policy:
- cooldown-time: 3
name: cpu_util_above_threshold
scaling-criteria:
- name: cpu_util_above_threshold
scale-in-relational-operation: LT
scale-in-threshold: 47900000
scale-out-relational-operation: GT
scale-out-threshold: 48000000
vnf-monitoring-param-ref: vnf_cpu_util
scaling-type: automatic
threshold-time: 3
ext-cpd:
- id: vnf-cp0-ext
int-cpd:
cpd: vdu-eth0-int
vdu-id: hackfest_basic-VM
id: hackfest_basic-vnf
mgmt-cp: vnf-cp0-ext
product-name: hackfest_basic-vnf
sw-image-desc:
- id: ubuntu20.04
name: ubuntu20.04
image: ubuntu20.04
- id: ubuntu20.04-aws
name: ubuntu20.04-aws
image: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20231025
vim-type: aws
- id: ubuntu20.04-azure
name: ubuntu20.04-azure
image: Canonical:0001-com-ubuntu-server-focal:20_04-lts:latest
vim-type: azure
- id: ubuntu20.04-gcp
name: ubuntu20.04-gcp
image: ubuntu-os-cloud:image-family:ubuntu-2004-lts
vim-type: gcp
vdu:
- cloud-init-file: cloud-config.txt
supplemental-boot-data:
boot-data-drive: true
id: hackfest_basic-VM
name: hackfest_basic-VM
sw-image-desc: ubuntu20.04
alternative-sw-image-desc:
- ubuntu18.04-aws
- ubuntu18.04-azure
- ubuntu18.04-gcp
virtual-compute-desc: hackfest_basic-VM-compute
virtual-storage-desc:
- hackfest_basic-VM-storage
int-cpd:
- id: vdu-eth0-int
virtual-network-interface-requirement:
- name: vdu-eth0
virtual-interface:
type: PARAVIRT
monitoring-parameter:
- id: vnf_cpu_util
name: vnf_cpu_util
performance-metric: kpi_node_memory_Slab_bytes
version: 1.0
virtual-compute-desc:
- id: hackfest_basic-VM-compute
virtual-cpu:
num-virtual-cpu: 1
virtual-memory:
size: 1.0
virtual-storage-desc:
- id: hackfest_basic-VM-storage
size-of-storage: 10
\ No newline at end of file
hackfest_basic_service_kpi_vnf/icons/osm.png

54.6 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment