Compute :: Berlioz Documentation

Compute

Scale Policy

kind: policy
name: scale
target:
    deployment: <deployment-name>
    region: <region>
    cluster: <cluster-name>
    service: <service-name>
config:
    min: <value>
    max: <value>
    metrics:
        cpu:
            targetAverage: 50
        memory:
            targetAverage: 1G
        current_connections:
            targetAverage: 100

Autoscaling

metrics attribute defines autoscaling rules for services. None, one or multiple metrics can be defined to control autoscaling behaviour.

Metric Description
cpu Scales based on targetAverage cpu usage.
memory Scales based on targetAverage memory usage.
current_connections Scales based on targetAverage number of concurrent connections opened towards the service.

CPU Policy

Configure CPU usage in number of cores. Use “0.5” for half of a core.

kind: policy
name: cpu
target:
    deployment: <deployment-name>
    region: <region>
    cluster: <cluster-name>
    service: <service-name>
config:
    min: <value>
    max: <value>

Memory Policy

Set memory usage in Megabytes.

kind: policy
name: memory
target:
    deployment: <deployment-name>
    region: <region>
    cluster: <cluster-name>
    service: <service-name>
config:
    min: <value>
    max: <value>