![Page 1: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/1.jpg)
Green / Blue Deployment with Immutable Servers
Highly automated deployments
![Page 2: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/4.jpg)
What’s tado°?
Introducing tado° Cooling intelligent A/C control
![Page 5: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/5.jpg)
Regular deployments
![Page 6: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/6.jpg)
Assumption: servers are always up and running
![Page 7: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/7.jpg)
but suddenly…
![Page 8: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/8.jpg)
now everything has to be as fast as possible and it starts to be chaotic
![Page 9: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/10.jpg)
Running stack
![Page 11: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/11.jpg)
Create new stack
![Page 12: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/12.jpg)
Swapcan also be a soft transition phase
![Page 13: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/13.jpg)
Remove previous stack
![Page 14: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/14.jpg)
Cloudformation
![Page 15: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/16.jpg)
Logstash
![Page 17: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/17.jpg)
Logstash
![Page 18: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/18.jpg)
What about monitoring?
AWS CloudwatchInstances shipping of metric
data(app layer, e.g. heap space)
monitor os level: cpu, network traffic etc
Dashboard
HTTP call
![Page 19: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/19.jpg)
CloudWatch
![Page 20: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/20.jpg)
self healing
![Page 21: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/21.jpg)
assumption now: servers have problems but you can handle them
![Page 22: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/22.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/23.jpg)
code your infrastructure
![Page 24: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/24.jpg)
code your provisioning
![Page 25: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/25.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/26.jpg)
![Page 27: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/27.jpg)
Linkshttp://martinfowler.com/bliki/ImmutableServer.htmlhttp://martinfowler.com/bliki/PhoenixServer.htmlhttp://martinfowler.com/bliki/BlueGreenDeployment.htmlhttp://www.slideshare.net/joesondow/asgard-the-grails-app-that-deploys-netflix-to-the-cloudhttps://www.youtube.com/watch?v=KOJUEioYJcM
![Page 28: Green / Blue Deployment with Immutable Servers](https://reader034.vdocuments.site/reader034/viewer/2022051612/54c64ad14a7959f9648b456c/html5/thumbnails/28.jpg)
Imageshttps://flic.kr/p/bsqD14
http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en
https://flic.kr/p/6K41qvhttp://creativecommons.org/licenses/by/2.0/deed.en
http://devopsreactions.tumblr.com/post/81376369612/non-standardized-environmenthttp://devopsreactions.tumblr.com/post/79448238067/manual-failover