Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scaling is about how many identical run-time instances the Orchestrator creates based on a design-time resource template within a model. In the SDC data model, the scaling concept is modelled using a specially defined family of TOSCA policies.

See Scaling Policy Types.

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.


Image Added


Example



Code Block
languagetext
themeConfluence
linenumberstrue
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]