-
-
Save mikecmpbll/39f8c7a63a28d684b67d062ff99e096a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2014-10-16 | |
description: Foo | |
resources: | |
port: | |
type: OS::Neutron::Port | |
properties: | |
network: os-network | |
security_groups: | |
- default | |
volume: | |
type: OS::Cinder::Volume | |
properties: | |
image: 'Memset - Ubuntu 18.04 (2018-06-18)' | |
size: 15 | |
scaleup_group: | |
type: OS::Heat::AutoScalingGroup | |
properties: | |
cooldown: 60 | |
desired_capacity: 1 | |
max_size: 3 | |
min_size: 1 | |
resource: | |
type: OS::Nova::Server | |
properties: | |
block_device_mapping: | |
- device_name: vda | |
delete_on_termination: true | |
volume_id: { get_resource: volume } | |
flavor: MSOS002 | |
key_name: mike | |
networks: | |
- port: { get_resource: port } | |
scaleup_policy: | |
type: OS::Heat::ScalingPolicy | |
properties: | |
adjustment_type: change_in_capacity | |
auto_scaling_group_id: { get_resource: scaleup_group } | |
cooldown: 60 | |
scaling_adjustment: 1 | |
scaledown_policy: | |
type: OS::Heat::ScalingPolicy | |
properties: | |
adjustment_type: change_in_capacity | |
auto_scaling_group_id: { get_resource: scaleup_group } | |
cooldown: 60 | |
scaling_adjustment: -1 | |
cpu_alarm_high: | |
type: OS::Ceilometer::Alarm | |
properties: | |
meter_name: cpu_util | |
statistic: avg | |
period: 60 | |
evaluation_periods: 1 | |
threshold: 50 | |
alarm_actions: | |
- {get_attr: [scaleup_policy, alarm_url]} | |
matching_metadata: {'metadata.user_metadata.groupname': {get_resource: 'scaleup_group'}} | |
comparison_operator: gt | |
cpu_alarm_low: | |
type: OS::Ceilometer::Alarm | |
properties: | |
meter_name: cpu_util | |
statistic: avg | |
period: 60 | |
evaluation_periods: 1 | |
threshold: 10 | |
alarm_actions: | |
- {get_attr: [scaledown_policy, alarm_url]} | |
matching_metadata: {'metadata.user_metadata.groupname': {get_resource: 'scaleup_group'}} | |
comparison_operator: lt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment