tech thursday - beer & devops 24.11
TRANSCRIPT
M A K E S I T W O R K
WelcomeAuto-scale use-casesAuto-scale demoBreakKontena demo & presentationMingling
AGENDA
RESOURCE GROUP MINIMUM SIZE / MAXIMUM SIZE
RESOURCE GROUP HORIZONTAL SCALING
M A K E S I T W O R K
AUTOSCALEWHAT IT IS?
TRIGGERSRESOURCE LOAD (CEILOMETER)EXTERNAL EVENT (HTTP POST)
M A K E S I T W O R K
Known variable load Your VDI infrastructureUnpredictable load Finland Tax informationSteadily increasing load AirbnbBatch load Payroll processing
AUTOSCALE USE CASE
M A K E S I T W O R K
SCHEDULED OR ON-DEMAND ORCHESTRATION USE CASE
Disaster recovery Recover to new another siteAd-hoc Try new plug-inDuplicate Clone DEV/QA environmentBatch load Software build process
M A K E S I T W O R K
M A K E S I T W O R K
AZ1 AZ2
Application Tier
Web Tier
Data Tier
www.acme.com
Load Balancing
SCALABLE WEB APP
M A K E S I T W O R K
PROVISION SERVERS/STACKAUTO ADD NODES TO DATADOG
(SCHEDULED) CREATE LOADAUTO-SCALE UP
(SCHEDULED) DECREASE LOADAUTO-SCALE DOWN
DEMO
M A K E S I T W O R K
port_id: { get_resource: fe_port }
asg:type: OS::Heat::AutoScalingGroupproperties:min_size: 1max_size: 3resource:type: OS::Nova::Serverproperties:key_name: {get_param: key_name}flavor: {get_param: flavor}image: {get_param: image}availability_zone: {get_param: availability_zone}networks:- network: { get_param: dmz_network }
metadata: {"metering.stack": {get_param: "OS::stack_id"}}user_data_format: RAWuser_data:get_resource: cloud_config_stress
scale_up_policy:type: OS::Heat::ScalingPolicyproperties:adjustment_type: change_in_capacityauto_scaling_group_id: {get_resource: asg}cooldown: 60scaling_adjustment: 1
scale_down_policy:type: OS::Heat::ScalingPolicyproperties:adjustment_type: change_in_capacityauto_scaling_group_id: {get_resource: asg}
RESOURCE GROUP MINIMUM SIZE
RESOURCE GROUP SCALE OUT SIZE
CEILOMETER
METRICS
ALARM
HEAT ENGINE
RESOURCE POLICY
USER DATA
WEBHOOK
M A K E S I T W O R K
AUTOSCALESIMPLIFIED
METRICS
M A K E S I T W O R K
HOW HARD CAN IT BE?
We built this demo from ‘scratch’ in ~3 hours including planning,
registration to Datadogand recording
DEMO COSTS
Extra 4GB RAM Server*220 minutes
TOTAL = 0,05€