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
Kamal 2.x
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Miha Rekar
October 11, 2024
Technology
150
0
Share
Kamal 2.x
A lightning talk given at Slovenia Ruby User Group on 10th October 2024.
Miha Rekar
October 11, 2024
More Decks by Miha Rekar
See All by Miha Rekar
Rails Made My Hobby Profitable
miharekar
0
120
Turbo
miharekar
0
120
What's new in Rails?
miharekar
0
110
Rails 7.1
miharekar
0
150
Software Developers Are People Too
miharekar
0
160
What Are Flame Graphs and How to Read Them - RubyConfBY 2017
miharekar
2
600
What Are Flame Graphs and How to Read Them - DevConTLV X
miharekar
0
450
TBD
miharekar
0
170
Flame Graphs
miharekar
0
560
Other Decks in Technology
See All in Technology
AIはハッカーを減らすのか、増やすのか?──現役ホワイトハッカーから見るAI時代のリアル【MEGU-Meet】
cscengineer
0
150
EBS暗号化に失敗してEC2が動かなくなった話
hamaguchimmm
2
200
みんなで作るAWS Tips 100連発 (FinOps編)
schwrzktz
1
300
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
7
1.3k
プラットフォームエンジニアリングの実践 - AWS コンテナサービスで構築する社内プラットフォーム / AWS Containers Platform Meetup #1
literalice
1
160
Eight Engineering Unit 紹介資料
sansan33
PRO
3
7.3k
クラウドネイティブな開発 ~ 認知負荷に立ち向かうためのコンテナ活用
literalice
0
120
Practical TypeProf: Lessons from Analyzing Optcarrot
mame
0
330
ARIA Notifyについて
ryokatsuse
1
120
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
78k
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
400
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
99
The Spectacular Lies of Maps
axbom
PRO
1
700
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Thoughts on Productivity
jonyablonski
76
5.1k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
290
The Curious Case for Waylosing
cassininazir
0
300
Transcript
Miha Rekar Lightning talk Kamal 2.x
Migration Expert • Last several blog posts all about migrations:
• SES -> Postmark and (ab)using generates_token_for for List-Unsubscribe Headers • Pagy -> Turbo with in inite scrolling* • Devise to native Rails 8 Auth* • Fly.io to Hetzner with Kamal 2† *on Radan’s blog † WIP
ECT Business • https://business.europeancoffeetrip.com/ • Postgres DB • Small number
of users • Café Awards • Huge traffic spike • Fly gets expensive real fast • How hard can it be?
None
All the metrics
Just add accessories • kamal accessory boot prometheus • kamal
accessory boot node_exporter • kamal accessory boot cadvisor • kamal accessory boot grafana • Add a simple prometheus.yml
Hetzner • All in a single CAX11 ARM VM •
4f the RAM and 2f CPU of Fly • 1/8th the price • Response times slashed in half • No traffic bottlenecks (yet) • Much faster and zero-downtime deploys
Just Do It # • Already hosted a couple of
tiny services • This gave me con idence • Visualizer next • What are you migrating? • 20× Hetzner credits $
Thank you!