...
All ONAP scaling policies inherit from the tosca.policies.Scaling policy. A scaling policy may target any resource template or group in the model. When a scaling policy targets a group, this group scales out and in as a whole. Absence of a scaling policy for a resource implies that this resource should be instantiated once.
Example: Nested Scaling
Code Block | ||||
---|---|---|---|---|
| ||||
node_templates: vf1: # omitted for brevity vf2: # omitted for brevity vf3: # omitted for brevity groups: vfs_grp: type: tosca.groups.Root members: [vf1, vf2] policies: scale_vf1: type: onap.policies.scaling.Fixed properties: quantity: 3 targets: [vf2] scale_vfs_grp: type: onap.policies.scaling.Fixed properties: quantity: 2 targets: [vfs_grp] |
...