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

Like this? Share it with your network

Share

Hjs#1 mongodb on ec2

on

  • 911 views

 

Statistics

Views

Total Views
911
Views on SlideShare
911
Embed Views
0

Actions

Likes
1
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Hjs#1 mongodb on ec2 Presentation 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