{% extends "apps/base.html" %} {% load staticfiles %} {% block extra_css %} {{ block.super }} {% endblock %} {% block navbar %} {% include "apps/navbar.html" with active="autoscale" %} {% endblock %} {% block app-content %} {% if app.autoscale and auto_scale %}

Danger

Both tsuru native autoscale and legacy service based autoscale are enabled and will conflict with each other.

{% endif %}

Native auto scale configurations

{% for autoscale in app.autoscale %}

Process: {{ autoscale.process }} (version {{ autoscale.version }})

Min units: {{ autoscale.minUnits }}

Max units: {{ autoscale.maxUnits }}

Target CPU: {{ autoscale.averageCPU }}

remove
{% endfor %} add
{% if auto_scale or is_legacy %}

Service based auto scale configurations

{% if auto_scale %}

Start with units: {{ auto_scale.minUnits }}

Scale up

Expression: {{ auto_scale.scaleUp.metric }} {{ auto_scale.scaleUp.operator }} {{ auto_scale.scaleUp.value }}

Aggregator: {{ auto_scale.scaleUp.aggregator }}

Step (in units): {{ auto_scale.scaleUp.step }}

Wait time (in seconds): {{ auto_scale.scaleUp.wait }}

Scale down

Expression: {{ auto_scale.scaleDown.metric }} {{ auto_scale.scaleDown.operator }} {{ auto_scale.scaleDown.value }}

Aggregator: {{ auto_scale.scaleDown.aggregator }}

Step (in units): {{ auto_scale.scaleDown.step }}

Wait time (in seconds): {{ auto_scale.scaleDown.wait }}

{% if events %}

events

{% for event in events %} {% if event.Action.Name != "enable_alarm" and event.Action.Name != "disable_alarm" %} {% endif %} {% endfor %}
action start end successful error
{{ event.Action.Name}} {{ event.StartTime }} {{ event.EndTime }} {{ event.Successful }} {{ event.Error }}
{% endif %} remove {% if auto_scale.enabled %} disable {% else %} enable {% endif %}
{% else %} add {% endif %}
{% endif %} {% endblock %}