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
######## setting up control node: | |
sudo -s | |
yum -y install erlang R git make gcc gcc-c++ glibc-devel R-devel python-argparse | |
git clone git://github.com/basho/basho_bench.git /opt/basho_bench | |
export HOME=/root | |
cd /opt/basho_bench | |
make all | |
sed -i 's,#!/usr/bin/env Rscript --vanilla,#!/usr/bin/Rscript --vanilla,g' priv/summary.r | |
git clone git://github.com/drewkerrigan/riak_benchmarking.git /opt/riak_benchmarking |
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
Baseline Tests | |
HTTP / Bitcask (done, although could be redone since we used rc2 instead of rc3) | |
Protobuf / Bitcask (done, although could be redone since we used rc2 instead of rc3) | |
HTTP / LevelDB (done, although could be redone since we used rc2 instead of rc3) | |
Protobuf / LevelDB (done, although could be redone since we used rc2 instead of rc3) | |
Functionality Tests | |
2i / Protobuf / LevelDB | |
Plain 2 hour (done, although could be redone since we used rc2 instead of rc3) | |
Plain 24-48 hour (in progress) | |
On top of a baseline (not done) |
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
basho-ninja:mhealth dkerrigan$ git log origin/pre-prod-deploy-2-6-2013..HEAD | |
commit f51a8ab96dc56b53a01c8bf89f414364c706df10 | |
Author: drewkerrigan <[email protected]> | |
Date: Thu Jan 17 12:06:35 2013 -0500 | |
fixing from/to bug in metrics report | |
commit 5b4e55535553b2d4dd08b14c881472b8518e3339 | |
Author: drewkerrigan <[email protected]> | |
Date: Wed Jan 16 15:49:08 2013 -0500 |
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
1) Add the New Relic yum repository | |
Install the newrelic-repo package, which configures a new package repository for yum: | |
######################################### | |
rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm | |
######################################### | |
2) Install the Server Monitor package | |
Run the install command: |
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
basho-ninja:riak-data-migrator dkerrigan$ mvn package | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Riak Data Migrator 0.1 | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.2/maven-surefire-plugin-2.7.2.pom | |
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.2/maven-surefire-plugin-2.7.2.pom (10 KB at 18.9 KB/sec) | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.7.2/surefire-2.7.2.pom | |
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.7.2/surefire-2.7.2.pom (11 KB at 154.6 KB/sec) |
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
require("riak-php-client/riak.php"); | |
$client = new RiakClient('127.0.0.1', 8098); | |
$mr = new RiakMapReduce($client); | |
$keys = array("TFrWAVz8RRVEEqCH3nS27O4InLB","FEwZgNI4VTJSIZxSas0QpOCCXjn","EkSkmblyIAT5VL7xYpScP2GP71G"); | |
foreach ($keys as $key) { | |
$mr->add("local_ns~users", $key); | |
} | |
$mr->map("Riak.mapValues"); |
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
############### Testing Node install.sh | |
cd | |
sudo apt-get install git make build-essential libncurses5-dev openssl libssl-dev | |
git clone git://github.com/basho/basho_bench.git | |
cd basho_bench | |
cp examples/riakc_pb.config azure_riakc_pb.config | |
cd | |
############### Node 1-N install.sh | |
cd |
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
basho-ninja:mhealth dkerrigan$ RACK_ENV=local ; ./console | |
1.9.3p194 :001 > a = Application.find("api-tester-client") | |
=> <Application:api-tester-client flags={} created_at=2012-11-30 16:39:40 UTC app_type="client" app_status="prod" scope_permissions="public" connected_apps=0 total_users=0 has_icon=false name="api-tester-client" display_name="API Tester Client" developer_id="FEwZgNI4VTJSIZxSas0QpOCCXjn" description="Qui corporis labore enim voluptatem non numquam ducimus maiores." compliance="fda" url_callback="http://localhost" default_access_type="read" consumer_id="VuLWp8shXiLxh7Tn7hSf" consumer_secret="046IpUI5KhZ2m1QQllWrx9AbrVIhtXVGQyEM18Ec" updated_at=2012-11-30 16:39:40 UTC url_website=nil organization=nil url_support=nil url_subscription=nil> | |
1.9.3p194 :002 > a.metrics_totals | |
=> {:storage_used=>6266.0, :api_usage=>14919.0, :api_calls=>40, :third_party_api_calls=>4714.0} | |
1.9.3p194 :003 > a.metrics_details("20121115","20121215") | |
=> {:storage_used=>{"20121115"=>0.0, "20121116"=>0.0, "20121117"=>0.0, |
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
get "/admin/reports/*_metrics.csv" do |operation| | |
endpoint = Att::API::Internal::Metrics.new(Server.setting(:api_uri), @app, @type) | |
report = "Date of Report," | |
report += "Developer Registration Date," | |
report += "Developer Id," | |
report += "Developer Email," | |
report += "Developer Organization," | |
report += "Developer CTN," | |
report += "AT&T Wireless Customer," |
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
basho-ninja:api-server dkerrigan$ bundle exec rake | |
/Users/dkerrigan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I"lib:lib:test" -I"/Users/dkerrigan/.rvm/gems/ruby-1.9.3-p194@api_server/gems/rake-0.9.2/lib" "/Users/dkerrigan/.rvm/gems/ruby-1.9.3-p194@api_server/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" | |
/Users/dkerrigan/.rvm/gems/ruby-1.9.3-p194@api_server/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require': iconv will be deprecated in the future, use String#encode instead. | |
:public is no longer used to avoid overloading Module#public, use :public_folder instead | |
from /Users/dkerrigan/.rvm/gems/ruby-1.9.3-p194@api_server/gems/cans-0.2.2/lib/cans/application.rb:4:in `<class:Application>' | |
* DEFERRED: for ownerships with an existing ownership specific id with a provider token the /v3/ownership/:id/subscription endpoint should return metadata about existing subscriptions on GET. | |
* DEFERRED: for ownerships with an existing ownership specific id with a provider |