Commit de490860 authored by Mark Beierl's avatar Mark Beierl
Browse files

Merge branch 'palsus-master-patch-83471' into 'master'

wiki webserver package for osm-mr-10 hackfest

See merge request !132

(cherry picked from commit cfd8ca33)

3a114024 wiki webserver package for osm-mr-10 hackfest
166ed94c Update password to 2021
parent 8d2e7c23
Loading
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
nsd:
    nsd:
    -   description: Scaling wiki web server with load balancer NS
        designer: Altran
        df:
        -   id: default-df
            vnf-profile:
            -   id: '1'
                virtual-link-connectivity:
                -   constituent-cpd-id:
                    -   constituent-base-element-id: '1'
                        constituent-cpd-id: haproxy_mgmt-ext
                    -   constituent-base-element-id: '1'
                        constituent-cpd-id: apache_mgmt-ext
                    virtual-link-profile-id: mgmt_vld
                -   constituent-cpd-id:
                    -   constituent-base-element-id: '1'
                        constituent-cpd-id: haproxy_public-ext
                    virtual-link-profile-id: public_vld
                vnfd-id: wiki_webserver_autoscale_vnf
        id: wiki_webserver_autoscale_ns
        name: wiki_webserver_autoscale_ns
        version: '1.0'
        virtual-link-desc:
        -   id: mgmt_vld
            mgmt-network: 'true'
            vim-network-name: mgntnet
        -   id: public_vld
            mgmt-network: 'true'
            vim-network-name: osm-ext
        vnfd-id:
        - wiki_webserver_autoscale_vnf
+6 KiB

File added.

No diff preview for this file type.

+5 −0
Original line number Diff line number Diff line
#cloud-config
hostname: apachevdu
password: osm2021
chpasswd: { expire: False }
ssh_pwauth: True
+5 −0
Original line number Diff line number Diff line
#cloud-config
hostname: haproxyvdu
password: osm2021
chpasswd: { expire: False }
ssh_pwauth: True
+158 −0
Original line number Diff line number Diff line
vnfd:
    description: Scaling wiki web server with load balancer and metrics
    df:
    -   id: default-df
        instantiation-level:
        -   id: default-instantiation-level
            vdu-level:
            -   number-of-instances: 1
                vdu-id: haproxy_vdu
            -   number-of-instances: 1
                vdu-id: apache_vdu
        scaling-aspect:
        -   aspect-delta-details:
                deltas:
                -   id: apache_vdu_autoscale-delta
                    vdu-delta:
                    -   id: apache_vdu
                        number-of-instances: 1
            id: apache_vdu_autoscale
            max-scale-level: 10
            name: apache_vdu_autoscale
            scaling-policy:
            -   cooldown-time: 180
                name: apache_cpu_util_above_threshold
                scaling-criteria:
                -   name: apache_cpu_util_above_threshold
                    scale-in-relational-operation: LT
                    scale-in-threshold: 20
                    scale-out-relational-operation: GT
                    scale-out-threshold: 80
                    vnf-monitoring-param-ref: apache_vnf_cpu_util
                scaling-type: automatic
                threshold-time: 10
        vdu-profile:
        -   id: haproxy_vdu
            min-number-of-instances: 1
        -   id: apache_vdu
            max-number-of-instances: 11
            min-number-of-instances: 1
        virtual-link-profile:
        -   flavour: ''
            id: internal_services
            virtual-link-protocol-data:
                l3-protocol-data:
                    cidr: 192.168.30.0/24
                    description: Services Subnet
                    dhcp-enabled: true
                    gateway-ip: 192.168.30.1
                    ip-version: ipv4
                    name: internal_services-l3-protocol-data
    ext-cpd:
    -   id: haproxy_public-ext
        int-cpd:
            cpd: haproxy_vdu_eth1-int
            vdu-id: haproxy_vdu
    -   id: haproxy_mgmt-ext
        int-cpd:
            cpd: haproxy_vdu_eth0-int
            vdu-id: haproxy_vdu
    -   id: apache_mgmt-ext
        int-cpd:
            cpd: apache_vdu_eth0-int
            vdu-id: apache_vdu
    id: wiki_webserver_autoscale_vnf
    int-virtual-link-desc:
    -   id: internal_services
    mgmt-cp: haproxy_mgmt-ext
    product-name: wiki_webserver_autoscale_vnf
    provider: Altran
    sw-image-desc:
    -   id: haproxy_ubuntu
        image: haproxy_ubuntu
        name: haproxy_ubuntu
    -   id: apache_ubuntu
        image: apache_ubuntu
        name: apache_ubuntu
    vdu:
    -   cloud-init-file: cloud_init_haproxy
        description: haproxy_vdu
        id: haproxy_vdu
        int-cpd:
        -   id: haproxy_vdu_eth1-int
            virtual-network-interface-requirement:
            -   name: haproxy_vdu_eth1
                position: 1
                virtual-interface:
                    type: VIRTIO
        -   id: haproxy_vdu_eth0-int
            virtual-network-interface-requirement:
            -   name: haproxy_vdu_eth0
                position: 2
                virtual-interface:
                    type: VIRTIO
        -   id: haproxy_vdu_eth2-int
            int-virtual-link-desc: internal_services
            virtual-network-interface-requirement:
            -   name: haproxy_vdu_eth2
                position: 3
                virtual-interface:
                    type: VIRTIO
        name: haproxy_vdu
        sw-image-desc: haproxy_ubuntu
        virtual-compute-desc: haproxy_vdu-compute
        virtual-storage-desc:
        - haproxy_vdu-storage
    -   cloud-init-file: cloud_init_apache
        description: apache_vdu
        id: apache_vdu
        int-cpd:
        -   id: apache_vdu_eth0-int
            virtual-network-interface-requirement:
            -   name: apache_vdu_eth0
                position: 1
                virtual-interface:
                    type: VIRTIO
        -   id: apache_vdu_eth1-int
            int-virtual-link-desc: internal_services
            virtual-network-interface-requirement:
            -   name: apache_vdu_eth1
                position: 2
                virtual-interface:
                    type: VIRTIO
        monitoring-parameter:
        -   id: apache_vnf_cpu_util
            name: apache_vnf_cpu_util
            performance-metric: cpu_utilization
        -   id: apache_vnf_memory_util
            name: apache_vnf_memory_util
            performance-metric: average_memory_utilization
        -   id: apache_vnf_packets_sent
            name: apache_vnf_packets_sent
            performance-metric: packets_sent
        -   id: apache_vnf_packets_received
            name: apache_vnf_packets_received
            performance-metric: packets_received
        name: apache_vdu
        sw-image-desc: apache_ubuntu
        virtual-compute-desc: apache_vdu-compute
        virtual-storage-desc:
        - apache_vdu-storage
    version: '2.1'
    virtual-compute-desc:
    -   id: haproxy_vdu-compute
        virtual-cpu:
            num-virtual-cpu: 4
        virtual-memory:
            size: 4.0
    -   id: apache_vdu-compute
        virtual-cpu:
            num-virtual-cpu: 1
        virtual-memory:
            size: 1.0
    virtual-storage-desc:
    -   id: haproxy_vdu-storage
        size-of-storage: 10
    -   id: apache_vdu-storage
        size-of-storage: 10