Hjs#1 mongodb on ec2

847 views
791 views

Published on

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

No Downloads
Views
Total views
847
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Hjs#1 mongodb on ec2

  1. 1. mongoDB on EC2 Taizo NAKAMURA @Hi-Cube Mar / 24 / 12
  2. 2. About/ Taizo NAKAMURA ( on Facebook etc )/ @jailbreak23 ( on Twitter )/ Armonicos ( on work ) *JAWS-UG 浜松 *Hamamatsu.rb *Hamamatsu.js
  3. 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. 4. Part 1 JS x mongoDBFact of LifeRef : http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell
  5. 5. Part 2 mongoDB x AWS #1mongoDB is...A kind of NoSQL DatabaseDocument OrientedStored in BSON (JSON Binary) formatEasy to Scale out
  6. 6. Part 2 mongoDB x AWS #2AWS is...Amazon Web ServicesCloud Computing PlatformEasy to Scale out
  7. 7. Part 2 mongoDB x AWS #3General
  8. 8. Part 2 mongoDB x AWS #4Target
  9. 9. Part 2 mongoDB x AWS #5RequirementUse for DevelopmentMinimize the CostEasiest Up and RunningMinimize the Cost
  10. 10. Part 2 mongoDB x AWS #6Component MongoDB(cold stand- by ) run instance AMI Instances attach volume EBS
  11. 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. 12. Part 2 mongoDB x AWS #8Demo
  13. 13. Part 3 AWS x HamamatsuJAWS-UG 浜松 #2May / 12Coming soonJoin USFacebook / Google Groups
  14. 14. Thank you

×