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
cd /usr/src/ | |
sudo wget http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.15.2.tar.gz | |
sudo tar zxvf haproxy-1.3.15.2.tar.gz | |
sudo aptitude install libpcre++-dev | |
sudo make TARGET=linux26 CPU=i386 USE_STATIC_PCRE=1 | |
sudo make install | |
sudo haproxy -f /etc/haproxy/haproxy.conf | |
https:// ..url.. /haproxy?stats |
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
sudo nginx -t -c /etc/nginx/nginx.conf |
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
RailsAllowModRewrite on | |
PassengerUseGlobalQueue on | |
PassengerMaxPoolSize 30 |
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/env ruby | |
# | |
# Find bloating passengers and kill them gracefully. Run from cron every minute. | |
# | |
MEM_LIMIT = ARGV[0].to_i || 500 | |
module Process | |
def self.running?(pid) | |
begin |
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/ree-gem | |
#!/bin/sh | |
/opt/ruby-enterprise-1.8.6-20081205/bin/gem $* | |
/usr/bin/ree-ruby | |
#!/bin/sh | |
/opt/ruby-enterprise-1.8.6-20081205/bin/ruby $* |
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/env ruby | |
# | |
# Find bloating passengers and kill them gracefully. Run from cron every minute. | |
# | |
MEM_LIMIT = ARGV[0].to_i || 500 | |
module Process | |
def self.running?(pid) | |
begin |
NewerOlder