Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created September 4, 2012 01:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/3615511 to your computer and use it in GitHub Desktop.
Save wokamoto/3615511 to your computer and use it in GitHub Desktop.
AWS メモ 2012.09.04
ec2-api-tools を Mac にインストール
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
unzip ec2-api-tools.zip
mkdir ~/ec2
mv ec2-api-tools-1.6.1.4//bin/ ~/ec2/
mv ec2-api-tools-1.6.1.4//lib/ ~/ec2/
export EC2_HOME=~/ec2
export PATH=$PATH:$EC2_HOME/bin
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
export EC2_PRIVATE_KEY=$EC2_HOME/PrivateKey.pem
export EC2_CERT=$EC2_HOME/509Certificate.pem
export AWS_CLOUDWATCH_HOME=$EC2_HOME
---
Tsunami UDP
http://tsunami-udp.sourceforge.net/
---
EC2 料金、EBS料金を見積もれば大まかにOK
データ転送量+その他は 10% 〜 20% 程度
Simple Monthly Calculator
http://calculator.s3.amazonaws.com/calc5.html?lng=ja_JP
---
ec2 のスケールアップ手順
ec2-stop-instances --region ap-northeast-1 i-xxxxxxxx
ec2-describe-instances --region ap-northeast-1
で stopped になったことを確認
ec2-modify-instance-attribute --region ap-northeast-1 i-xxxxxxxx -t m1.small
ec2-start-instances --region ap-northeast-1 i-xxxxxxxx
ec2-associate-address --region ap-northeast-1 xxx.xxx.xxx.xxx -i i-xxxxxxxx
http://blog.cloudpack.jp/2012/06/aws-news-ec2-eip-get-relation.html
---
ELB on VPC の機能
・パブリッククラウドの ELB と機能面は同等
・ELB のトラフィックをサブネットを跨いで分散
・ELB セキュリティグループで、より細かくコントロール可能
ELB on VPC の制約
・現状 IPv6 サポート無し
---
auto scaling
https://github.com/Netflix/aws-autoscaling
wget http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip
unzip AutoScaling-2011-01-01.zip
cp -r AutoScaling-1.0.61.0/bin/* $EC2_HOME/bin/
cp -r AutoScaling-1.0.61.0/lib/* $EC2_HOME/lib/
rm -rf AutoScaling-1.0.61.0
export AWS_AUTO_SCALING_HOME=$EC2_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment