This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use threads; | |
my $NUM_THREADS = 8; | |
sub do_work { | |
while() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will ride alongside god and kill any rogue memory-greedy | |
# processes. Their sacrifice is for the greater good. | |
unicorn_worker_memory_limit = 300_000 | |
Thread.new do | |
loop do | |
begin | |
# unicorn workers | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s /usr/share/zoneinfo/UTC /etc/localtime | |
yum -y update | |
rpm -Uvh http://rbel.frameos.org/rbel6 | |
yum -y install gcc g++ zlib zlib-devel libxslt libxslt-devel libxml2-devel gcc openssl openssl-devel readline-devel make libcurl-devel.x86_64 htop vim curl strace liburl-devel wget | |
cd /tmp | |
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | |
tar xzvf yaml-0.1.4.tar.gz |