Scaling VNFs Using ETSI API
ESC can scale VMs using the ETSI API. The scaling workflow begins when the VNF instance is in the instantiated state. The scaling details are defined in the VNFD by the NFVO.
Scaling of a VNF instance can be achieved in two ways:
-
Scale
-
Scale to level
As part of scaling,
-
Add VM instances to the VNF to scale out.
-
Remove VM instances from the VNF to scale in.
Note |
Currently, ETSI supports only manual scaling. |
Scale
ESC can scale a VNF incrementally. The numberOfSteps attribute determines the increment by which you can scale the VNF instance. By default, the number of steps is set to 1.
POST
/vnf_instances/{vnfInstanceId}/scale
Content-Type:application/json
{
"type":"SCALE_OUT",
"aspectId":"processing",
"numberOfSteps":"1",
}
not applicable.
not applicable.
Scale to Level
Allows ESC to scale the VNF to a specified level.
POST
/vnf_instances/{vnfInstanceId}/scale_to_level
Content-Type:application/json
{
/* "instantiationLevelId":"id111", */
"scaleInfo": [
{ "aspectId":"processing", "scaleLevel":"3" },
{ "aspectId":"database", "scaleLevel":"2" }
]
"additionalParams": {
"password": "pass1234",
"username": "admin"
}
}
not applicable.
not applicable.