Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting Into the Zero Downtime Deployment World
Search
Tugberk Ugurlu
September 16, 2016
Programming
0
96
Getting Into the Zero Downtime Deployment World
Dev Day 2016 (Krakow, Poland)
Tugberk Ugurlu
September 16, 2016
Tweet
Share
More Decks by Tugberk Ugurlu
See All by Tugberk Ugurlu
Redis Cluster for Write Intensive Workloads
tourismgeek
1
17k
Designing Towards Event Sourcing
tourismgeek
1
17k
Essentials for Building and Leading Highly Effective Development Teams
tourismgeek
0
530
Let the Uncertainty be Your Friend: Finding Your Path in a Wiggly Road
tourismgeek
0
530
Benefits of Managed Kubernetes in Azure (Azure Container Service, AKS)
tourismgeek
0
520
Levelling up to Become a Technical Lead
tourismgeek
2
28k
Benefits of Managed Kubernetes in Azure (Azure Container Service, AKS)
tourismgeek
0
210
GraphQL
tourismgeek
0
220
I Hated React too Soon, Reconciled with It Quickly Afterwards
tourismgeek
0
56
Other Decks in Programming
See All in Programming
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
9
980
Importmapを使ったJavaScriptの 読み込みとブラウザアドオンの影響
swamp09
4
1.2k
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
910
破壊せよ!データ破壊駆動で考えるドメインモデリング / data-destroy-driven
minodriven
16
4k
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.1k
CSC305 Lecture 13
javiergs
PRO
0
130
PLoP 2024: The evolution of the microservice architecture pattern language
cer
PRO
0
1.6k
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
1
240
Vue.js学習の振り返り
hiro_xre
2
130
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
110
プロジェクト新規参入者のリードタイム短縮の観点から見る、品質の高いコードとアーキテクチャを保つメリット
d_endo
1
1k
Go言語でターミナルフレンドリーなAIコマンド、afaを作った/fukuokago20_afa
monochromegane
2
140
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
150
Bash Introduction
62gerente
608
210k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
290
Designing Experiences People Love
moore
138
23k
Ruby is Unlike a Banana
tanoku
96
11k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Why Our Code Smells
bkeepers
PRO
334
57k
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
Fireside Chat
paigeccino
32
3k
Transcript
Getting Into the Zero Downtime Deployment World Tugberk Ugurlu Redgate
Software @tourismgeek tugberkugurlu.com #ABBDevDay https://flic.kr/p/fNTDM1
#ABBDevDay https://flic.kr/p/HLRTPW Software Dev @ Redgate Human in Cambridge, UK
MVP @ Microsoft
@tourismgeek tugberkugurlu.com github.com/tugberkugurlu stackoverflow.com/users/463785/tugberk
What is This? #ABBDevDay https://flic.kr/p/cdvAaj
#ABBDevDay Example HTTP APIs v1 Example Android iPhone Example Android
Client Example Web Client Example HTTP APIs v1.1
Should I Care? #ABBDevDay https://flic.kr/p/e7oMGm
#ABBDevDay https://flic.kr/p/49FHd3
#ABBDevDay https://flic.kr/p/CTxCx
https://twitter.com/tourismgeek/status/580270772402393088 #ABBDevDay
Continuous Delivery #ABBDevDay https://flic.kr/p/bzG7ds
#ABBDevDay http://bit.ly/2cstlDK
#ABBDevDay http://zleek.com
LB zleek-0 zleek-1 zleek-n mongodb neo4j elasticsearch rabbitmq recipe-generation-worker-0 recipe-sync-worker-0
food-sync-worker-0 store-sync-worker-0 recipe-generation-worker-1 recipe-generation-worker-n recipe-sync-worker-n recipe-sync-worker-0 #ABBDevDay
#ABBDevDay https://gist.github.com/revett/99d8a5143c0bfeddfc92 Our Target
Our Scope #ABBDevDay
Scope of the Talk #ABBDevDay HTTP Services Web Sites
#ABBDevDay https://flic.kr/p/mRRFdH The Path and Guidance
Write Down the Deployment Strategy #ABBDevDay https://flic.kr/p/pd4X4A
#ABBDevDay
Script out the Deployment Strategy https://flic.kr/p/79EVn6
#ABBDevDay
Release Management #ABBDevDay https://flic.kr/p/fCbQWb
#ABBDevDay Octopus Deploy http://bit.ly/2d2ivzU
#ABBDevDay Docker Cloud http://bit.ly/2d2ivzU #ABBDevDay
True Staging Environment #ABBDevDay
example-api-v0-6786234 example-api- process example-api-v0-6327638 example-api- process Router v0.example.com
Blue-green Deployment http://martinfowler.com/bliki/BlueGreenDeployment.html #ABBDevDay
Router v0.example.com #ABBDevDay example-api-v0-6327638 example-api- process example-api-v0-6786234 example-api- process
Drain Requests #ABBDevDay https://flic.kr/p/79A7Db
Router v0.example.com #ABBDevDay example-api-v0-6327638 example-api- process example-api-v0-6786234 example-api- process
Router v0.example.com #ABBDevDay example-api-v0-6327638 example-api- process example-api-v0-6786234 example-api- process
SemVer Your Software http://www.tugberkugurlu.com/archive/versioning-software-builds-based-on-git-tags-and-semantic-versioning-semver #ABBDevDay
SemVer (semver.org) #ABBDevDay Patch No user facing changes Major Introducing
incompatible changes Minor Add functionality in a backwards- compatible manner 2.4.6
SemVer as Way of Application Versioning • Support 2 Major
versions of the HTTP Service, not 1, not 3. • Define a support policy for support lifetime for versions #ABBDevDay
Minor-Patch Releases • No breaking changes #ABBDevDay
example-api-v0-6327638 example-api-v0-7814219 example-api-v0-9528392 LB v0.example.com example-api- process example-api- process example-api-
process example-api-v0-6786234 example-api-v0-3266280 example-api-v0-8429842 example-api- process example-api- process example-api- process
DEMO https://github.com/tugberkugurlu/AspNetCoreSamples/tree/abbdevday2016/haproxy-zero-downtime-sample #ABBDevDay
HAProxy Config Reload http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html #ABBDevDay
Internal LB-1 LB-1 Internal LB-2 server1 server2 server3 server4 server5
server6 server7 server8 server9 server10 client client client client client client #ABBDevDay
Multiple Load Balancer Nodes http://robert.penz.name/386/howto-setup-a-haproxy-as-fault-tolerant-high-available-load-balancer-for-multiple-caching-web-proxies-on-rhelcentossl/ #ABBDevDay
#ABBDevDay http://robert.penz.name/386/howto-setup-a-haproxy-as-fault-tolerant-high-available-load-balancer-for-multiple-caching-web-proxies-on-rhelcentossl/
Major Releases • Breaking Changes • First Major Release •
Non-first Major Releases #ABBDevDay
example-api-v0-6327638 example-api-v0-7814219 example-api-v0-9528392 LB v0.example.com example Products example Products example
Products example-api-v1-2276168 example-api-v1-5677802 example Products example Products LB v1.example.com example-api-v1-7182721 example Products
Prefer Fast-forward Database Changes #ABBDevDay https://flic.kr/p/54a6xY
#ABBDevDay v1 v2 Id Make Model Colour 1 Renault Clio
Red 2 Mercedes GLA Black 3 Volkswagen Polo White 4 Toyota Yaris Yellow Id Make Model Colour 1 Renault Clio Red 2 Mercedes GLA Black 3 Volkswagen Polo White 4 Toyota Yaris Yellow
Do Not Override Client Side Assets #ABBDevDay
#ABBDevDay v1 v1.1
#ABBDevDay v1 v1.1
Be Aware of the Context #ABBDevDay
Be Aware of the Context • Cookies • Sessions •
Authentication Tokens #ABBDevDay
Sticky Sessions http://blog.haproxy.com/2012/03/29/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/ #ABBDevDay
Helpful Tools • Git (https://git-scm.com) • Travis CI (https://travis-ci.org) •
Octopus Deploy (https://octopus.com) • HAProxy (http://haproxy.org) • node-semver CLI (http://bit.ly/1PO6hvR) • Docker (https://docker.com) • Docker Cloud (a.k.a. Tutum, http://bit.ly/1RYYtl2) • SQL Server Data Tools (SSDT, http://bit.ly/1P7qETh) • DLM Automation Tools from Redgate (http://bit.ly/1VQ2rDm) #ABBDevDay
@tourismgeek github.com/tugberkugurlu linkedin.com/in/tugberk https://flic.kr/p/edfM1R