This file contains hidden or 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
andrew@andrew-OptiPlex-7010:/var/www/logs/bin$ ./apache-log-stat $(ls ../logs/b2f*_ApacheAccess.2011-12-05.gz) | |
Processing | |
==================== | |
../logs/b2f01_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 5.92 variance_requests_per_second: 25.93 total_requests: 413603 stddev_requests_per_second: 5.09 max_requests_per_second: 57 | |
../logs/b2f02_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 6.05 variance_requests_per_second: 26.55 total_requests: 417711 stddev_requests_per_second: 5.15 max_requests_per_second: 45 | |
../logs/b2f03_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 6.09 variance_requests_per_second: 26.64 total_requests: 419073 stddev_requests_per_second: 5.16 max_requests_per_second: 48 | |
../logs/b2f04_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 5.07 variance_requests_per_second: 12.82 total_requests: 325374 stddev_requests_per_second: 3.58 max_requests_per_second: 29 | |
../logs/b2f05_ApacheAccess.2011-12-05.gz - avg_requests_per_ |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
nodes = { | |
'http' => [3, 10], | |
'db' => [2, 20], | |
} | |
Vagrant::Config.run do |config| | |
config.vm.box = "base" |
This file contains hidden or 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
config.vm.provision :chef_solo do |chef| | |
#chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz" | |
chef.cookbooks_path = "cookbooks" | |
#chef.add_recipe "mysql" | |
#chef.add_role "web" | |
#chef.add_role "apache2" | |
chef.add_recipe("vagrant_main") | |
# You may also specify custom JSON attributes: | |
chef.json = { :mysql_password => "foo" } |
This file contains hidden or 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
<?php | |
$nodes = array_filter(explode(' ',$_SERVER['argv'][1])); | |
$memcache = new Memcached; | |
//$memcache->setOption ( Memcached::OPT_DISTRIBUTION , Memcached::DISTRIBUTION_MODULA ); | |
$memcache->setOption ( Memcached::OPT_DISTRIBUTION , Memcached::DISTRIBUTION_CONSISTENT ); | |
foreach($nodes AS $node) { |
This file contains hidden or 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
#!/bin/bash | |
DEBUG=1; | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
GREP="`which grep`"; |
This file contains hidden or 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
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git submodule update | |
fatal: reference is not a tree: 7c25db19e674b4b7d43a7a14526444c0d5a6bb64 | |
Unable to checkout '7c25db19e674b4b7d43a7a14526444c0d5a6bb64' in submodule path 'library/Everlution' | |
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git reset | |
Unstaged changes after reset: | |
M library/Everlution | |
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git commit -m"Update" library/Everlution | |
[detached HEAD b56b876] Update | |
1 files changed, 1 insertions(+), 1 deletions(-) |
NewerOlder