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
Immutable Servers & Image Bakery
Search
Mehmet Ali Aydın
April 19, 2017
Technology
0
40
Immutable Servers & Image Bakery
Immutable Servers/Infrastructure and Deploying Apps with Bakery Model
Mehmet Ali Aydın
April 19, 2017
Tweet
Share
More Decks by Mehmet Ali Aydın
See All by Mehmet Ali Aydın
Ansible - Hands on Training
maaydin
0
140
Other Decks in Technology
See All in Technology
Fearsome File Formats
ange
0
540
2024年にチャレンジしたことを振り返るぞ
mitchan
0
170
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
33k
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
2
400
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.6k
3年でバックエンドエンジニアが5倍に増えても破綻しなかったアーキテクチャ そして、これから / Software architecture that scales even with a 5x increase in backend engineers in 3 years
euglena1215
11
4.2k
ソフトウェア開発における「パーフェクトな意思決定」/Perfect Decision-Making in Software Development
yayoi_dd
2
2.6k
AWS環境におけるランサムウェア攻撃対策の設計
nrinetcom
PRO
1
310
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
1
4.9k
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
170
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
380
UI State設計とテスト方針
rmakiyama
4
930
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Transcript
Immutable Servers & Image Bakery
Mehmet Ali Aydın DevOps Engineer @maayd_in
DevOps & Microservices Consultancy We consult you move towards Containerization,
Automated Provisioning, Deployment/Release Automation, Test Automation, Performance Tuning and moving to Cloud …
Server Operations Server A Server A Server A
Server Operations Server B Server B Server C Server C
Server C Server E Server E Server E Server F Server F Server A Server A Server A Server D Server D Server B Server D Server F
Server Operations
Operations at Scale?
Car Insurance - Replacement Over Repair
Operational Risks rm -rf *
Maintenance Time of one Machine • Get informed with alarms:
~ 2 minutes • Investigate error logs and find the problem: ~ 5 minutes • Solve the problem: 3 minutes • Total Time: ~ 10 minutes Maintenance Time of 10 Machines • 7 + (3 x n) minutes • Total Time: ~ 37 minutes Maintenance Time
None
Replacement Time of one Machine • Get informed with alarms:
~ 2 minutes • Initialization of a new machine: ~ 2 minutes • Application boot up and health checks: ~ 1 minute • Total time: ~ 5 minutes Replacement Time of 10 Machine • 3 + 2 minutes • Total time: ~ 5 minutes Replacement Time
Replacement over Maintenance
SLA level of 99.99 % uptime/availability gives following periods of
potential downtime/unavailability: • Monthly: 4m 23.0s • Yearly: 52m 35.7s SLA level of 99.999 % uptime/availability gives following periods of potential downtime/unavailability: • Monthly: 26.3s • Yearly: 5m 15.6s High Availability & Uptime
• Server #1 : $> node --version $> v6.9.0 •
Server #2 : $> node --version $> v6.9.2 • Server #3 : $> node --version $> v6.9.4 Snowflake Servers
The Bakery Model
Image ref: http://www.3ders.org/articles/20150220-stuffhub-teams-with-candymaker-to-create-custom-lollipops-with-help-of-3d-printing.html The Bakery Model
• Binaries • Packages • Machine Images Artifacts
Image Bakery Temporary Instance For Bakery Image Bakery Image Repository
Base Image Baked Image
Rolling Updates Image Repository Baked Image v2 App Instance v1
App Instance v1 App Instance v2 App Instance v2 App Instance v1 App Instance v2 App Instance v2 App Instance v1
Featured Implementers
Human Body Metaphor
Human Body Metaphor
Image Repository
Storage
Configuration Management
Secret Management
Log Management
Testing and Security
Docker & Docker Compose
Ansible & Vagrant & Packer
Demo https://github.com/maaydin/immutable-servers-demo
Happy Baking :) Happy Baking :)