Your SlideShare is downloading. ×
Hjs#1 mongodb on ec2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Hjs#1 mongodb on ec2

684

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
684
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. mongoDB on EC2 Taizo NAKAMURA @Hi-Cube Mar / 24 / 12
  • 2. About/ Taizo NAKAMURA ( on Facebook etc )/ @jailbreak23 ( on Twitter )/ Armonicos ( on work ) *JAWS-UG 浜松 *Hamamatsu.rb *Hamamatsu.js
  • 3. My JS History JavaScript本格入門 The Good Parts JavaScript Patterns Node Web Development jQuery Cookbook Test-Driven JavaScript Development The Definitive Guide 6th Edition
  • 4. Part 1 JS x mongoDBFact of LifeRef : http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell
  • 5. Part 2 mongoDB x AWS #1mongoDB is...A kind of NoSQL DatabaseDocument OrientedStored in BSON (JSON Binary) formatEasy to Scale out
  • 6. Part 2 mongoDB x AWS #2AWS is...Amazon Web ServicesCloud Computing PlatformEasy to Scale out
  • 7. Part 2 mongoDB x AWS #3General
  • 8. Part 2 mongoDB x AWS #4Target
  • 9. Part 2 mongoDB x AWS #5RequirementUse for DevelopmentMinimize the CostEasiest Up and RunningMinimize the Cost
  • 10. Part 2 mongoDB x AWS #6Component MongoDB(cold stand- by ) run instance AMI Instances attach volume EBS
  • 11. Part 2 mongoDB x AWS #7 Code on Linuxinstance_id=`ec2-run-instances $ami_id -g database -k spoch-ap -t t1.micro | grep INSTANCE | cut -f 2`while [ "$state" != "running" ]doresult=`ec2-describe-instances $instance_id | grep INSTANCE | head -n 1`state=`echo $result | cut -d -f 6`doneec2-attach-volume $volume_id -i $instance_id -d /dev/sdfecho "attach volume $volume_id"
  • 12. Part 2 mongoDB x AWS #8Demo
  • 13. Part 3 AWS x HamamatsuJAWS-UG 浜松 #2May / 12Coming soonJoin USFacebook / Google Groups
  • 14. Thank you

×