Green / Blue Deployment with Immutable Servers

28
Green / Blue Deployment with Immutable Servers Highly automated deployments

description

Talk about green / blue deployments at the University of Applied Sciences Salzburg

Transcript of Green / Blue Deployment with Immutable Servers

Page 1: Green / Blue Deployment with Immutable Servers

Green / Blue Deployment with Immutable Servers

Highly automated deployments

Page 2: Green / Blue Deployment with Immutable Servers

Who am I?

Simon Dittlmannat tado° since 2013previous Payback, WISI, Mivitec...

Developer, DevOpPreferred Language: JS

Contact SimonDittlmann github.com/Pindar

Page 3: Green / Blue Deployment with Immutable Servers

What’s tado°?

The app that controls your heating and saves energy.

With a Connector kit for your home.

Page 4: Green / Blue Deployment with Immutable Servers

What’s tado°?

Introducing tado° Cooling intelligent A/C control

Page 5: Green / Blue Deployment with Immutable Servers

Regular deployments

Page 6: Green / Blue Deployment with Immutable Servers

Assumption: servers are always up and running

Page 7: Green / Blue Deployment with Immutable Servers

but suddenly…

Page 8: Green / Blue Deployment with Immutable Servers

now everything has to be as fast as possible and it starts to be chaotic

Page 9: Green / Blue Deployment with Immutable Servers

Green / Blue Deployment with Immutable Servers● enables you to easily deploy infrastructure● automates and structures the deployment● makes it easy to replace hundreds of servers

within minutes

how?

Page 10: Green / Blue Deployment with Immutable Servers

Running stack

Page 11: Green / Blue Deployment with Immutable Servers

Create new stack

Page 12: Green / Blue Deployment with Immutable Servers

Swapcan also be a soft transition phase

Page 13: Green / Blue Deployment with Immutable Servers

Remove previous stack

Page 14: Green / Blue Deployment with Immutable Servers

Cloudformation

Page 15: Green / Blue Deployment with Immutable Servers

What about log data?

shipper(instance)

shipper (instance)

shipper(instance)

Queue(Redis)

indexing (elastic search)

processing (logstash)

kibana (JS-view)

Backup S3

Cluster

Page 16: Green / Blue Deployment with Immutable Servers

Logstash

Page 17: Green / Blue Deployment with Immutable Servers

Logstash

Page 18: Green / Blue Deployment with Immutable Servers

What about monitoring?

AWS CloudwatchInstances shipping of metric

data(app layer, e.g. heap space)

monitor os level: cpu, network traffic etc

Dashboard

eMail

HTTP call

Page 19: Green / Blue Deployment with Immutable Servers

CloudWatch

Page 20: Green / Blue Deployment with Immutable Servers

self healing

Page 21: Green / Blue Deployment with Immutable Servers

assumption now: servers have problems but you can handle them

Page 22: Green / Blue Deployment with Immutable Servers

Three independent work streams

Application

Infrastructure

Virtual Machine Deployment AWS

Grails, Java

Puppet

Cloudformation

deploy.js

aws sdk/cli

packer.iovagrant

jenkins

jenkins

Page 23: Green / Blue Deployment with Immutable Servers

code your infrastructure

Page 24: Green / Blue Deployment with Immutable Servers

code your provisioning

Page 25: Green / Blue Deployment with Immutable Servers

Summary

1. Automate as much as possible2. Find Key Metrics and monitor3. Solve problems before they happen

Page 26: Green / Blue Deployment with Immutable Servers