1 of 27

Cloudformation�en Autoscaling�#HOEDAN #WINNING

2 of 27

Hoi!

Ik ben Stein van Broekhoven

AWS Cloudformation en Autoscaling�Hoe werkt het en hoe maak je het makkelijk?

3 of 27

Wat is

cloudformation?

Wat is

auto scaling?

3

4 of 27

Wanneer kun je dit toepassen?

GEEN Lokale data op compute nodes

WEL Herbruikbare componenten

4

5 of 27

Wat voor type scaling zijn er?

5

Verticaal

Grotere servers

Horizontaal� Meer servers

6 of 27

Waarom al die moeite voor een klein beetje extra zekerheid?

6

7 of 27

Voorspelbaarheid

4 nodes:

4xN req/s max

1 node:

N req/s max

10 nodes:

10xN req/s max

7

8 of 27

Voorspelbaarheid

Nodes will fail!

8

9 of 27

Flexibiliteit

Optimalisaties kunnen sneller in kleine stappen gedaan worden.

9

10 of 27

Flexibiliteit

Deployments naar een nieuwe locatie zijn makkelijker

10

11 of 27

Op welke

services

van AWS

gaan we

focussen?

EC2

ECS

RDS

11

12 of 27

2 soorten�triggers

  • Step based

  • Target Tracking

12

13 of 27

Waarop

baseer je

schaal�triggers

13

14 of 27

Hoe ziet dat er uit?

14

15 of 27

De niet perfecte wereld

15

16 of 27

Cloudwatch alarms

Period

Tijdvak om in te meten

Evaluation Period

Hoeveel vakken totaal in meting

Datapoints to Alarm

Hoeveelheid keer over limit� binnen “Evaluation Period”� Voor alarm trigger.

16

17 of 27

Dat was de

theorie nu de cloudformation

17

18 of 27

Api Version

Parameters

Resources�Launch config��AutoScalingGroup

ScalingPolicy

18

19 of 27

Relationele weergave

19

20 of 27

Een stapje complexer

20

21 of 27

21

22 of 27

ScalingPolicy

22

23 of 27

Traffic based ScalingPolicy

23

24 of 27

Container based autoscaled service

24

25 of 27

Load test demo

25

26 of 27

Slides

Blog

Bedankt,��Stein van Broekhoven�AWS infra consultant �Conclusion Xforce

27 of 27

27

SlidesCarnival icons are editable shapes.

This means that you can:

  • Resize them without losing quality.
  • Change line color, width and style.

Isn’t that nice? :)

Examples: