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
Deploying MongoDB on Amazon WS | Michael Karpitsky
Search
Minsk MongoDB User Group
July 05, 2012
Programming
140
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Deploying MongoDB on Amazon WS | Michael Karpitsky
Michael Karpitsky
Meetup #5
Minsk MongoDB User Group
July 05, 2012
More Decks by Minsk MongoDB User Group
See All by Minsk MongoDB User Group
MongoDB by Chef | Yauhen Artsiukhou
bymongo
0
140
MongoDB at IronMQ | Alexander Kolesen
bymongo
0
860
Scaling MongoDB | Sergey Gavruk
bymongo
2
200
Event sourcing + CQRS + MongoDB | Alex Shkor
bymongo
1
650
How it works. Indexes | Kirill Duborenko
bymongo
5
300
Aggregation Framework | Mikhail Burtylev
bymongo
1
130
MongoDB 2.2: Release update + Roadmap | Alvin Richards
bymongo
1
120
Meetup#6 Intro | Alex Litvinok
bymongo
1
67
About the problem of DBMS choice & what to do if you have gone the wrong way | Roman Bugaev
bymongo
3
150
Other Decks in Programming
See All in Programming
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
690
Creating Composable Callables in Contemporary C++
rollbear
0
130
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
110
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
330
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.1k
ふつうのFeature Flag実践入門
irof
7
4k
Contextとはなにか
chiroruxx
1
320
RTSPクライアントを自作してみた話
simotin13
0
610
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
4.7k
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
560
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
100
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
What's in a price? How to price your products and services
michaelherold
247
13k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Skip the Path - Find Your Career Trail
mkilby
1
150
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
270
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
150
So, you think you're a good person
axbom
PRO
2
2.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
New Earth Scene 8
popppiees
3
2.3k
Scaling GitHub
holman
464
140k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
Transcript
Михаил Карпицкий MaeSens.by
А нужен ли AWS? • Небольшой проект – mongolab
• Все сейчас работает и ничего не планирует расти • Хочу пробовать облака! • Не устраивает текущая производительность • Предполагаем рост
OK! Amazon!
Типы EC2-‐инстансов
Бюджетный вариант Replica Sets app mongod (primary)
mongod (secondary) mongod (arbiter)
primary/secondary mongod EBS EBS EBS
EBS EBS EBS EBS /data/db /data/db/journal /var/log Raid10 Raid1
Настройки OS • ext4, xfs • raid10, raid1
• $ blockdev -‐-‐setra 128 /dev/md0 (read-‐ahead) • выключить ayme, dirayme # cat /etc/fstab UUID=6.. /data/db ext4 noayme,nodirayme 0 0
Security group internet app mongod mongod
Port 22, 80, 443 Port 22 Port 22 Port 27017 Port 27017 Port 27017
Security group • Порт 22 из 0.0.0.0/0 •
Порты 27017, 27018 и 27019 из security group приложения • Порты 27017, 27018 и 27019 из security group mongo
> rs.status() • $ mongo • > rs.iniyate()
• > rs.add(node1) • > rs.add(node2) • > rs.status()
Backup (вариант 1) • > use admin •
> db.runCommand({fsync:1, lock:1}); • $ ec2-‐create-‐snapshot –d backup-‐date vol-‐ {1..4} • > db.$cmd.sys.unlock.findOne();
Backup (вариант 2) • $ mongodump –d database
• $ tar zcvf /backups/backup-‐date.tgz dump • $ ec2-‐create-‐snapshot –d backups-‐vol-‐date backup-‐vol-‐1
Вопросы? • Михаил Карпицкий • hŠp://maesens.by/
•
[email protected]
• skype: michael.karpitsky