Sha256: ccb61b485cb0c5f1b3a41c7a48ffd101f648a1542c4c7a989e0d7a251fb2fd86

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

<% if $complexity == 'complex' %>
name: <%= server_pools_name %>
cloud: AWS
vpc:
  vpc_name: <%= vpc_name %>
alarms:
- comparison_operator: "GreaterThanThreshold"
  metric_name: "HTTPCode_Target_5XX_Count"
  evaluation_periods: 1
  name: "HTTP_Target_500_Count"
  period: 60
  statistic: "Sum"
  threshold: 10
  enable_notifications: true
  notification_endpoint: 'admin@example.com'
  namespace: "AWS/ApplicationELB"
scale_in_protection: "initial"
scale_with_cpu: 50.0
scaling_policies:
- name: simplediskreads
  policy_type: SimpleScaling
  adjustment: 1
  cooldown: 60
  type: ChangeInCapacity
  alarms:
  - name: simplenetwork
    namespace: "AWS/EC2"
    metric_name: DiskReadBytes
    period: 60
    evaluation_periods: 1
    comparison_operator: GreaterThanThreshold
    statistic: Sum
    threshold: 1073741824
- name: trackingnetworkin
  policy_type: TargetTrackingScaling
  estimated_instance_warmup: 600
  target_tracking_configuration:
    target_value: 250.0
    predefined_metric_specification: ASGAverageNetworkIn
termination_policies:
- "OldestInstance"
wait_for_nodes: 1
min_size: 2
max_size: 2
schedule:
- action_name: scale-down-over-night
  recurrence: "30 6 * * *"
  min_size: 1
  max_size: 1
- action_name: scale-up-during-the-day
  recurrence: "30 12 * * *"
  min_size: 2
  max_size: 2
ingress_rules:
- port: 80
  hosts:
  - 0.0.0.0/0
- port: 443
  hosts:
  - 0.0.0.0/0
basis:
  launch_config:
    name: <%= server_pools_name %>
    size: t2.medium
<% else %>
name: <%= server_pools_name %>
min_size: 1
max_size: 1
basis:
  launch_config:
    name: <%= server_pools_name %>
    size: t2.small
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloud-mu-3.0.0 modules/mu/config/server_pool.yml