Defines the policies for the scaling controller
Defines default criteria for starting or stopping Liberty servers based on demand for resources
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Indicates whether the scaling policy is enabled |
min | int Min: 0 | 2 | Minimum number of cluster members to start |
max | int Min: -1 | -1 | Maximum number of cluster members that can be running at the same time |
name |
| horizontal | Indicates whether to scale horizontally or vertically. horizontal Horizontal vertical Vertical |
Defines resource usage criteria for starting or removing a server
Name | Type | Default | Description |
---|---|---|---|
id | string | A unique configuration ID. | |
name |
| Name of the scaling policy memory Memory cpu CPU heap Heap | |
min | int Min: 0 Max: 100 | 30 | The average percentage of the metric below which to scale in |
max | int Min: 0 Max: 100 | 90 | The average percentage of the metric above which to scale out |
Defines detailed controls for reducing the number of servers
Name | Type | Default | Description |
---|---|---|---|
amount | int Min: 1 | 1 | The amount by which to scale, in the units defined by the units attribute. |
units |
| instance | The units by which to scale. instance Amount is a number of instances. percentage Amount is a percentage relative to the current number of instances. |
minInterval | A period of time with millisecond precision | 15m | The minimum amount of time between a scaling change. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), seconds (s), or milliseconds (ms). For example, specify 500 milliseconds as 500ms. You can include multiple values in a single entry. For example, 1s500ms is equivalent to 1.5 seconds. |
Defines detailed controls for increasing the number of servers
Name | Type | Default | Description |
---|---|---|---|
amount | int Min: 1 | 1 | The amount by which to scale, in the units defined by the units attribute. |
units |
| instance | The units by which to scale. instance Amount is a number of instances. percentage Amount is a percentage relative to the current number of instances. |
minInterval | A period of time with millisecond precision | 5m | The minimum amount of time between a scaling change. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), seconds (s), or milliseconds (ms). For example, specify 500 milliseconds as 500ms. You can include multiple values in a single entry. For example, 1s500ms is equivalent to 1.5 seconds. |
defaultScalingPolicy > hostGroup
Defines criteria for determining which hosts can be used to provision new cluster members.
Name | Type | Default | Description |
---|---|---|---|
tags | string | A space-delimited list of administrative metadata tags. A host is eligible to provision new cluster members if it has one of the tags. |
Defines criteria for starting or stopping Liberty servers based on demand for resources
Name | Type | Default | Description |
---|---|---|---|
id | string | A unique configuration ID. | |
enabled | boolean | true | Indicates whether the scaling policy is enabled |
min | int Min: 0 | 2 | Minimum number of cluster members to start |
max | int Min: -1 | -1 | Maximum number of cluster members that can be running at the same time |
name |
| horizontal | Indicates whether to scale horizontally or vertically. horizontal Horizontal vertical Vertical |
Defines resource usage criteria for starting or removing a server
Name | Type | Default | Description |
---|---|---|---|
id | string | A unique configuration ID. | |
name |
| Name of the scaling policy memory Memory cpu CPU heap Heap | |
min | int Min: 0 Max: 100 | The average percentage of the metric below which to scale in | |
max | int Min: 0 Max: 100 | The average percentage of the metric above which to scale out |
Defines the names of the clusters to which the policy is applied
Name | Type | Default | Description |
---|---|---|---|
clusters | string | A comma-separated list of cluster names. A cluster name can be wildcarded with an asterisk at the end of the name only. |
Defines detailed controls for reducing the number of servers
Name | Type | Default | Description |
---|---|---|---|
amount | int Min: 1 | 1 | The amount by which to scale, in the units defined by the units attribute. |
units |
| instance | The units by which to scale. instance Amount is a number of instances. percentage Amount is a percentage relative to the current number of instances. |
minInterval | A period of time with millisecond precision | 15m | The minimum amount of time between a scaling change. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), seconds (s), or milliseconds (ms). For example, specify 500 milliseconds as 500ms. You can include multiple values in a single entry. For example, 1s500ms is equivalent to 1.5 seconds. |
Defines detailed controls for increasing the number of servers
Name | Type | Default | Description |
---|---|---|---|
amount | int Min: 1 | 1 | The amount by which to scale, in the units defined by the units attribute. |
units |
| instance | The units by which to scale. instance Amount is a number of instances. percentage Amount is a percentage relative to the current number of instances. |
minInterval | A period of time with millisecond precision | 5m | The minimum amount of time between a scaling change. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), seconds (s), or milliseconds (ms). For example, specify 500 milliseconds as 500ms. You can include multiple values in a single entry. For example, 1s500ms is equivalent to 1.5 seconds. |
Defines criteria for determining which hosts can be used to provision new cluster members.
Name | Type | Default | Description |
---|---|---|---|
tags | string | A space-delimited list of administrative metadata tags. A host is eligible to provision new cluster members if it has one of the tags. |