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
result=`curl -o /dev/null -w "time: "%{time_total}" status:"%{http_code} -k -s -H "Authorization: $auth_header" -H "Content-Type: application/octet-stream" -H "Date: $header_date" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80$path -T ./files/$filenumber` | |
echo $result >> stats.txt |
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
#!/bin/bash | |
moss_access_key="<your_access_key>" | |
moss_secret_key="<your_secret_key>" | |
method="PUT" | |
endtime=$(date '+%s') | |
endtime=$((endtime + 1800)) | |
nowtime=$(date '+%s') | |
mv stats.txt{,.bak} |
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
results=`curl -o /dev/null -w "time: "%{time_total}" status: "%{http_code} -k -s -H "Authorization: $auth_header" -H "Content-Type: application/octet-stream" -H "Date: $header_date" -XDELETE --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80$path -T ./files/$filenumber` | |
should be | |
results=`curl -o /dev/null -w "time: "%{time_total}" status: "%{http_code} -k -s -H "Authorization: $auth_header" -H "Content-Type: application/octet-stream" -H "Date: $header_date" -XDELETE --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80$path` | |
echo $results >> stats.txt |
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
root@s01:~/basho_bash_bench/results/cs-2-mb-60-min-2-wr-create# curl -v -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS TO4-TUG1PBVPULDERE0P:PFrn6M/GYsIbaGOAnEljE/cq/7g=" -H "Content-Type: application/octet-stream" -H "Date: Wed, 30 May 2012 15:21:40 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/dd41aebc50a9 -T ./files/32 | |
curl: Can't open './files/32'! | |
curl: try 'curl --help' or 'curl --manual' for more information | |
root@s01:~/basho_bash_bench/results/cs-2-mb-60-min-2-wr-create# cd ../../ | |
root@s01:~/basho_bash_bench# curl -v -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS TO4-TUG1PBVPULDERE0P:PFrn6M/GYsIbaGOAnEljE/cq/7g=" -H "Content-Type: application/octet-stream" -H "Date: Wed, 30 May 2012 15:21:40 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/dd41aebc50a9 -T ./files/32 | |
* About to connect() to proxy 10.80.83.68 port 8077 (#0) | |
* Trying 10.80.83.68... connected | |
* Connected to 10.80.83.68 (10.80.83.68) p |
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
root@s01:~/basho_bench# ./basho_bench /root/riak_moss/bench/moss.config | |
INFO: Loaded basho_bench_driver_moss (/root/riak_moss/bench/basho_bench_driver_moss.erl) | |
INFO: Est. data size: 5.00 KB | |
INFO: Starting 250.0 ms/req fixed rate worker: <0.59.0> | |
DEBUG:Driver basho_bench_driver_moss crashed: {badarg, | |
[{io,format, | |
[<0.52.0>,"~s", | |
[{url, | |
"http://sl.basho.com:80/test/2", | |
"sl.basho.com",80, |
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
root@s01:~/basho_bash_bench/results# ls -al | grep 6-04 | |
drwxr-xr-x 27 root root 4096 2012-06-04 11:08 . | |
drwxr-xr-x 9 root root 4096 2012-06-04 10:58 .. | |
drwxr-xr-x 3 root root 4096 2012-06-04 11:08 cs-2-mb-15-min-1-wr-create | |
root@s01:~/basho_bash_bench/results# cd cs-2-mb-15-min-1-wr-create | |
root@s01:~/basho_bash_bench/results/cs-2-mb-15-min-1-wr-create# ls -al | |
total 28 | |
drwxr-xr-x 3 root root 4096 2012-06-04 11:08 . | |
drwxr-xr-x 27 root root 4096 2012-06-04 11:08 .. | |
drwxr-xr-x 2 root root 4096 2012-06-04 11:08 backup |
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
Execute the following command and make a note of X-Auth-Token. You will need this token to use in all subsequent commands. | |
curl -v -H 'X-Storage-User: system:root' -H 'X-Storage-Pass: testpass' http://10.80.83.68:8077/auth/v1.0 | |
In the following command examples we are using 'AUTH_tk65840af9f6f74d1aaefac978cb8f0899' as the X-Auth-Token. Replace this with the appropriate token you obtained in the above step. | |
To create a container: | |
curl -X PUT -H 'X-Auth-Token: AUTH_tk65840af9f6f74d1aaefac978cb8f0899' http://10.80.83.68:8077/v1/AUTH_system/mycontainer | |
To list all containers in current account: |
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
root@s01:~/basho_bench# ./basho_bench softlayer_s07_cassandra_test.config | |
INFO: Est. data size: 46.57 GB | |
INFO: Using target s02:9160 for worker 1 | |
INFO: Starting max worker: <0.56.0> | |
=ERROR REPORT==== 13-Jun-2012::16:10:42 === | |
** Generic server <0.57.0> terminating | |
** Last message in was {call,insert, | |
["Keyspace1","2260050", | |
{columnPath,"Standard1",undefined,"col1"}, |
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
============================= To Clear DB ============================= | |
root@s02:~# ./cqlsh.sh | |
Connected to basho at localhost:9160. | |
[cqlsh 2.2.0 | Cassandra 1.1.1 | CQL spec 2.0.0 | Thrift protocol 19.32.0] | |
Use HELP for help. | |
cqlsh> use DEMO; | |
cqlsh:DEMO> truncate test; | |
cqlsh:DEMO> exit | |
============================= To Run Insert =========================== |
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
Steps to Setup riak / erlang on Ubuntu (Azure): | |
# Prerequisites | |
sudo apt-get install git make build-essential libncurses5-dev openssl libssl-dev | |
# Installing Erlang | |
wget http://erlang.org/download/otp_src_R14B03.tar.gz | |
tar zxvf otp_src_R14B03.tar.gz | |
cd otp_src_R14B03 | |
./configure && make && sudo make install |
OlderNewer