- Linux 使ってるけど vagrant とか Virtual Box とか時間かかってめんどい
- VM 作りまくって何が何だかわからなくなった
- Warden が動かない, Buildpack なにそれおいしいの?
- Go!
note: Ubuntu 12.04 (linux-image-3.8.0-23-generic) 使ってます。 Kernel 3.5 以前では安定しない模様。
from stackato.interfaces import StackatoInterface | |
from bs4 import BeautifulSoup | |
import requests | |
import yaml | |
CREDENTIALS = yaml.load(open('credentials.yml')) | |
APP_NAME = 'your-app-name' | |
NEW_RELIC_USER_ID = 'your-user-id' | |
NEW_RELIC_APPLICATION_ID = 'your-app-id' |
# stackato repo | |
alias s=~/as/vmc-tcl/bin/stackato | |
export STACKATO_SSH_OPTS=-4 | |
function vm-target { | |
H=stackato-$1.local | |
s target api.$H | |
} |
# not pretty, I quickly moved to another idea | |
# not involving the Twitter stream. Good starting | |
# point. | |
import re | |
import base64 | |
import socket | |
import asyncmongo | |
from tornado import ioloop | |
from tornado import iostream |
sudo apt-get install unzip | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.4.zip | |
unzip elasticsearch-0.17.4.zip | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
sudo apt-get update | |
sudo apt-get install sun-java6-jre sun-java6-plugin | |
sudo mv elasticsearch-0.17.4 /usr/local/share | |
cd elasticsearch-servicewrapper | |
sudo mv service /usr/local/share/elasticsearch-0.17.4/bin |
global | |
maxconn 10000 # Total Max Connections. This is dependent on ulimit | |
nbproc 2 | |
defaults | |
mode http | |
option redispatch | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 |