Scaling a component
Scaling the component of an assembly is a pattern that either adds or removes a component instance from a scaling group (including all relationships).
Before you begin
- Create the test_1 example assembly instance, which is described in Creating an assembly instance.
- The assembly to which the component belongs must be instantiated in the orchestration topology, and be in the 'Active state'.
- A cluster definition for the component itself must exist in the assembly descriptor, in which the minimum and maximum size of the scaling group and the default increment when scaling out or in are also defined.
About this task
You scale assembly instance components by using the Intents API. For more information about this API, see Intents API.
Assembly descriptors are in the orchestration component catalog, which you can view by using the Descriptors API .
For this task, you use component B
, which is part of the t_bta
assembly (assembly::t_bta::1.0
).
The cluster definition for component B is depicted in the following
sample:
…
composition:
A:
type: resource::t_simple::1.0
quantity: '1'
…
B:
type: resource::t_simple::1.0
cluster:
initial-quantity: '${numOfServers}'
minimum-nodes: 1
maximum-nodes: 4
scaling-increment: 1
properties:
…