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
Elixir Deployment
Search
Lukas Rieder
December 14, 2017
Programming
1
45
Elixir Deployment
A talk given at the 42th Elixir Meetup in Berlin.
Lukas Rieder
December 14, 2017
Tweet
Share
More Decks by Lukas Rieder
See All by Lukas Rieder
Modeling Document Databases
overbryd
1
110
Ahoi! Complex applications on Kubernetes
overbryd
0
67
Flow Based Programming in 2 minutes
overbryd
0
60
Metabase UG, November 2018
overbryd
0
110
Flow Based Programming in Elixir
overbryd
0
140
Configuration in Elixir
overbryd
0
110
Metabase, three good practises for a hosted setup
overbryd
0
79
NIFs and C-Nodes
overbryd
0
59
SQL Workshop Part 1
overbryd
0
100
Other Decks in Programming
See All in Programming
Some Quick Ideas To Improve Your Tests ( #jassttokyo )
teyamagu
PRO
2
2.3k
AppDeveloperCon 2024 EU: Building polyglot developer experiences in 2024
salaboy
0
380
ONE WEDGE_Company_Information
1wedge
0
170
Compiling Python to WebAssembly with py2wasm
syrusakbary
0
130
incrementalモデルの理解を深める
ikkimiyazaki
2
640
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
1
310
フロントエンドパフォーマンス 入門
shouta2
7
1.5k
もうすぐ新年度、Babylon.jsがお勧めな3個の理由
hideg
0
160
ここ1~2年くらいで 使えるようになった(主要ブラウザーの最新版 がすべて対応した ) ウェブの新機能について ランダムに喋る!
myzkyy
9
6.5k
オブジェクト指向コードレビューの新しいアプローチ
akkie76
3
1.5k
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
242
20k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
From Idea to $5000 a Month in 5 Months
shpigford
376
45k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
4 Signs Your Business is Dying
shpigford
174
21k
Making Projects Easy
brettharned
106
5.4k
Building Your Own Lightsaber
phodgson
97
5.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
343
19k
The Invisible Customer
myddelton
114
12k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
Visualization
eitanlees
135
14k
Transcript
Elixir Deployment
A very short
Talk
by Lukas Rieder
80%
80% Optimum
Build Release Restart
20%
20% This is what you can hire me for.
3 Phases
1 Build
1 Build Compile your application & dependencies
1 Build Watch out for cross- compiling issues!
1 Build CPU arch, OS Erlang version (!)
1 Build Watch out for configuration issues!
1 Build use ${VAR} templates
Tool: Docker
Tool: Docker Portability Reliability
Tool: Docker Compile for target CPU, OS and Erlang version
Tool: Vagrant (Docker Alternative)
Tool: distillery
Tool: distillery so amazing should be stdlib
Tool: mix_docker
2 Deploy & Restart
Tool: Docker (again?)
Tool: Docker Just works™
Tool: A Server /w ssh (Captain Obvious)
Tool: scp, rsync (alternatively)
Tool: Kubernetes
Tool: Kubernetes Featureful Orchestration Platform
Tool: Kubernetes Use when running whole infrastructures
3 Restart
3 Restart simplest = just restart
20% Continous Integration
20% Blue/Green Deployments
20% Canary Deployments
20% Rollbacks
10% Performance Optimizations
2% Hot Code Reloading
10% Automatic Clustering
20% Scaling
20% Monitoring
20% Error Reporting
Talk to me!
© 2017 Lukas Rieder