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
Easy deploy and manage EC2 instances with Rubber
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sergey Efremov
October 04, 2012
Programming
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Easy deploy and manage EC2 instances with Rubber
SPRUG 4.10
Sergey Efremov
October 04, 2012
Other Decks in Programming
See All in Programming
New "Type" system on PicoRuby
pocke
1
710
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
170
Webフレームワークの ベンチマークについて
yusukebe
0
150
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.6k
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
200
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
450
Oxlintのカスタムルールの現況
syumai
6
1k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
150
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
340
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
320
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
770
A2UI という光を覗いてみる
satohjohn
1
110
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
270
A better future with KSS
kneath
240
18k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
140
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
Docker and Python
trallard
47
3.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Side Projects
sachag
455
43k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
Producing Creativity
orderedlist
PRO
348
40k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
Transcript
Deploy and Manage EC2 instances with Rubber Sergey Efremov ResumUP
kittens included Friday, October 5, 12
Deploy Early Deploy Often Friday, October 5, 12
Deploy Early Deploy Often Friday, October 5, 12
Deploy Early Deploy Often Friday, October 5, 12
Problems? n + 1 servers servers are different you need
this new server 10 minutes ago Friday, October 5, 12
New server launch How it looks like Friday, October 5,
12
Rubber https://github.com/wr0ngway/rubber gem ‘rubber’ bundle install Friday, October 5, 12
Vulcanize rubber vulcanize complete_unicorn_nginx_postresql Complete Friday, October 5, 12
Vulcanize rubber vulcanize unicorn nginx monit munin postgresql Friday, October
5, 12
Rubber config #{Rails.root}/config/rubber - all configs rubber.yml - config of
rubber #{Rails.root}/config/rubber/roles/(unicorn|monit) configs of tools Friday, October 5, 12
Rubber.yml cloud_providers.aws image_type region Friday, October 5, 12
Tune configs it makes me cry Friday, October 5, 12
Roles role_dependencies: web: [nginx] app: [unicorn, munin, monit] web_tools: [nginx]
db: [postresql_master, monit] db_slave: [postresql_slave, monit] Friday, October 5, 12
Ready? Go! ALIAS=web01 ROLES=web cap rubber:create Friday, October 5, 12
Ready? Go! ALIAS=web01 ROLES=web cap rubber:create ALIAS=db01 ROLES=db cap rubber:create
Friday, October 5, 12
Ready? Go! ALIAS=web01 ROLES=web cap rubber:create ALIAS=db01 ROLES=db cap rubber:create
ALIAS=app01 ROLES=app cap rubber:create Friday, October 5, 12
Ready? Go! ALIAS=web01 ROLES=web cap rubber:create ALIAS=db01 ROLES=db cap rubber:create
ALIAS=app01 ROLES=app cap rubber:create ALIAS=tools ROLES=web_tools cap rubber:create Friday, October 5, 12
Bootstrap & Deploy cap rubber:bootstrap cap rubber:deploy Friday, October 5,
12
Moarrr servers Friday, October 5, 12
App Server ALIAS=app02 ROLE=app cap rubber:create FILTER=app02 cap rubber:bootstrap cap
rubber:deploy Friday, October 5, 12
DB Server ALIAS=db02 ROLE=db_slave cap rubber:create FILTER=db02 cap rubber:bootstrap cap
rubber:deploy Friday, October 5, 12
Kill them all FILTER=app02 cap rubber:destroy Friday, October 5, 12
Your own templates cap tasks (start, stop, install) role config
(packages, ports, etc.) server config (nginx.conf, etc.) It’s easy Friday, October 5, 12
Pull Request or GTFO more templates elastic balancer / autoscaling
other cloud providers Friday, October 5, 12
One more thing Friday, October 5, 12
One more thing gem ‘capistrano-nc’ Friday, October 5, 12
One more thing gem ‘capistrano-nc’ Friday, October 5, 12
Thanks Sergey Efremov @evilfaeton ResumUP Friday, October 5, 12