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
Miha Rekar
October 11, 2024
Technology
0
34
Kamal 2.x
A lightning talk given at Slovenia Ruby User Group on 10th October 2024.
Miha Rekar
October 11, 2024
Tweet
Share
More Decks by Miha Rekar
See All by Miha Rekar
Turbo
mrfoto
0
21
What's new in Rails?
mrfoto
0
44
Rails 7.1
mrfoto
0
91
Software Developers Are People Too
mrfoto
0
120
What Are Flame Graphs and How to Read Them - RubyConfBY 2017
mrfoto
2
470
What Are Flame Graphs and How to Read Them - DevConTLV X
mrfoto
0
390
TBD
mrfoto
0
120
Flame Graphs
mrfoto
0
440
What is this hipster graph thingy?
mrfoto
0
140
Other Decks in Technology
See All in Technology
カメラ単体で物体の3次元 座標を扱う方法
kenmatsu4
0
100
暴カワでビデオシンセサイザーを導入する技術
yuchi
2
120
寒冷地稲作の歴史にみるコミュニティ
miu_crescent
2
140
The People First Approach to Engineering Success - DevNot 2024
zikriyeurkmez
0
220
Amazon Managed Grafana で AWS IoT TwinMaker によるデジタルツインアプリケーションを動かしてみた
wakatsuki
0
110
巨大企業でDX革新を起こすということ BTCONJP 2024
yamaken66
0
210
ReSTIRの数理と実装 (rtcamp10)
yumcyawiz
1
480
LINE-ChatGPT 倫理問題を整理する全力肯定彼氏くん [LuC4]に訪れたサービス開始以来の最大の危機
o_ob
2
300
Unlearn Modularity
lemiorhan
6
300
Microsoft 365 でデータセキュリティを強化しよう
sophiakunii
2
470
XSS攻撃から考察するAWS設定不備の恐怖/20241012 Hironobu Otaki
shift_evolve
0
130
塩野義製薬様のAWS統合管理戦略:Organizations設計と運用の具体例
tkikuchi
0
310
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
46
4.9k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
It's Worth the Effort
3n
183
27k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Optimising Largest Contentful Paint
csswizardry
31
2.9k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
5
130
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
40
2.1k
Facilitating Awesome Meetings
lara
49
6k
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!