Hi Experts,
 I'm trying to work towards scale out use case for generic VM (ubuntu).
My Ves collector is sending the CPU stats (sample below).

I want to develop a scaleout usecase, where if the CPU usage is > 50 want to 
enable the threshold and trigger creation of new ubuntu VM.

So far I was able to create heatbdridge by following the wiki 
(https://wiki.onap.org/display/DW/vFWCL+instantiation%2C+testing%2C+and+debuging)

Would someone help me by guiding on how to create the policy rules and the next 
steps to achieve my usecase.


==============================

"event": {
        "commonEventHeader": {
            "domain": "measurementsForVfScaling",
            "eventId": "20",
            "eventName": "",
            "eventType": "guestOS",
            "lastEpochMicrosec": 0,
            "priority": "Normal",
            "reportingEntityId": "localhost",
            "reportingEntityName": "localhost",
            "sequence": 0,
            "sourceId": "05B822E8-B1DB-441C-A71B-q?",
            "sourceName": "05B822E8-B1DB-441C-A71B-q?",
            "startEpochMicrosec": 1517860420.92,
            "version": 2.0
        },
        "measurementsForVfScalingFields": {
            "additionalMeasurements": [
                {
                    "arrayOfFields": [
                        {
                            "name": "load-midterm",
                            "value": "0.26"
                        },
                        {
                            "name": "load-shortterm",
                            "value": "0.2"
                        },
                        {
                            "name": "load-longterm",
                            "value": "0.27"
                        }
                    ],
                    "name": "load"
                }
            ],
            "cpuUsageArray": [
                {
                    "cpuIdentifier": "0",
                    "cpuIdle": 93.1677018634,
                    "cpuUsageInterrupt": 0,
                    "cpuUsageNice": 0,
                    "cpuUsageSoftIrq": 0.103519668737,
                    "cpuUsageSteal": 0,
                    "cpuUsageSystem": 0.931677018634,
                    "cpuUsageUser": 5.17598343685,
                    "cpuWait": 0.621118012422,
                    "percentUsage": 0.0
                }
            ]
}

==============================



Thanks & best regards,
Ramu




_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to