Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Deploying MongoDB on Amazon WS | Michael Karpitsky
Search
Minsk MongoDB User Group
July 05, 2012
Programming
160
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
Transcript
13 slides
Михаил Карпицкий 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
More Decks by Minsk MongoDB User Group
See All by Minsk MongoDB User Group
MongoDB by Chef | Yauhen Artsiukhou
bymongo
0
150
MongoDB at IronMQ | Alexander Kolesen
bymongo
0
880
Scaling MongoDB | Sergey Gavruk
bymongo
2
210
Event sourcing + CQRS + MongoDB | Alex Shkor
bymongo
1
660
How it works. Indexes | Kirill Duborenko
bymongo
5
310
Aggregation Framework | Mikhail Burtylev
bymongo
1
150
MongoDB 2.2: Release update + Roadmap | Alvin Richards
bymongo
1
130
Meetup#6 Intro | Alex Litvinok
bymongo
1
75
About the problem of DBMS choice & what to do if you have gone the wrong way | Roman Bugaev
bymongo
3
170
Other Decks in Programming
See All in Programming
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
190
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
230
Ruby から Emacs を操作したい
phigasui
0
370
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.1k
Distance field of Julia set
kinakomoti321
0
330
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
360
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.6k
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
230
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
430
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
97
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
3k
Agile that works and the tools we love
rasmusluckow
331
22k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
570
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520