Created
June 30, 2014 15:00
-
-
Save akm/f09c26ec64e983f3a68c to your computer and use it in GitHub Desktop.
7つのデータベース7つの世界 第3章Riak2日目のハマりどころ ref: http://qiita.com/akm/items/d33472936f6fccf6b26b
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
| $ sw_vers | |
| ProductName: Mac OS X | |
| ProductVersion: 10.9.3 | |
| BuildVersion: 13D65 |
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
| $ dev/dev1/bin/riak version |
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
| $ dev/dev1/bin/riak-admin member-status | |
| ================================= Membership ================================== | |
| Status Ring Pending Node | |
| ------------------------------------------------------------------------------- | |
| valid 34.4% -- '[email protected]' | |
| valid 32.8% -- '[email protected]' | |
| valid 32.8% -- '[email protected]' | |
| ------------------------------------------------------------------------------- | |
| Valid:3 / Leaving:0 / Exiting:0 / Joining:0 / Down: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
| $ ps aux | grep beam | |
| akimatter 83490 2.1 0.9 2562012 75624 s001 Ss+ 9:30PM 0:38.11 $HOME/develop/riak-1.4.9/dev/dev1/bin/../erts-5.9.1/bin/beam.smp -K true -A 64 -W w -P 256000 -- -root $HOME/develop/riak-1.4.9/dev/dev1/bin/.. -progname riak -- -home $HOME -- -boot $HOME/develop/riak-1.4.9/dev/dev1/bin/../releases/1.4.9/riak -config $HOME/develop/riak-1.4.9/dev/dev1/bin/../etc/app.config -pa $HOME/develop/riak-1.4.9/dev/dev1/bin/../lib/basho-patches -name [email protected] -setcookie riak -smp enable -- console | |
| akimatter 83693 1.6 0.9 2557624 74372 s002 Ss+ 9:30PM 0:39.46 $HOME/develop/riak-1.4.9/dev/dev2/bin/../erts-5.9.1/bin/beam.smp -K true -A 64 -W w -P 256000 -- -root $HOME/develop/riak-1.4.9/dev/dev2/bin/.. -progname riak -- -home $HOME -- -boot $HOME/develop/riak-1.4.9/dev/dev2/bin/../releases/1.4.9/riak -config $HOME/develop/riak-1.4.9/dev/dev2/bin/../etc/app.config -pa $HOME/develop/riak-1.4.9/dev/dev2/bin/../lib/basho-patches -name [email protected] -setcookie riak -smp enable -- console | |
| akimatter 83931 1.5 0.9 2563948 75236 s004 Ss+ 9:30PM 0:36.36 $HOME/develop/riak-1.4.9/dev/dev3/bin/../erts-5.9.1/bin/beam.smp -K true -A 64 -W w -P 256000 -- -root $HOME/develop/riak-1.4.9/dev/dev3/bin/.. -progname riak -- -home $HOME -- -boot $HOME/develop/riak-1.4.9/dev/dev3/bin/../releases/1.4.9/riak -config $HOME/develop/riak-1.4.9/dev/dev3/bin/../etc/app.config -pa $HOME/develop/riak-1.4.9/dev/dev3/bin/../lib/basho-patches -name [email protected] -setcookie riak -smp enable -- console | |
| akimatter 78910 0.0 0.0 2423368 216 s000 R+ 11:45PM 0:00.00 grep beam |
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
| $ kill -9 83931 | |
| $ ps aux | grep beam | |
| akimatter 83490 0.6 0.9 2562012 75640 s001 Ss+ 9:30PM 0:38.43 $HOME/develop/riak-1.4.9/dev/dev1/bin/../erts-5.9.1/bin/beam.smp -K true -A 64 -W w -P 256000 -- -root $HOME/develop/riak-1.4.9/dev/dev1/bin/.. -progname riak -- -home $HOME -- -boot $HOME/develop/riak-1.4.9/dev/dev1/bin/../releases/1.4.9/riak -config $HOME/develop/riak-1.4.9/dev/dev1/bin/../etc/app.config -pa $HOME/develop/riak-1.4.9/dev/dev1/bin/../lib/basho-patches -name [email protected] -setcookie riak -smp enable -- console | |
| akimatter 83693 0.6 0.9 2557624 74380 s002 Ss+ 9:30PM 0:39.76 $HOME/develop/riak-1.4.9/dev/dev2/bin/../erts-5.9.1/bin/beam.smp -K true -A 64 -W w -P 256000 -- -root $HOME/develop/riak-1.4.9/dev/dev2/bin/.. -progname riak -- -home $HOME -- -boot $HOME/develop/riak-1.4.9/dev/dev2/bin/../releases/1.4.9/riak -config $HOME/develop/riak-1.4.9/dev/dev2/bin/../etc/app.config -pa $HOME/develop/riak-1.4.9/dev/dev2/bin/../lib/basho-patches -name [email protected] -setcookie riak -smp enable -- console | |
| akimatter 79914 0.0 0.0 2432780 440 s000 R+ 11:46PM 0:00.00 grep beam |
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
| $ curl -i http://localhost:10018/buckets/animals/keys/ace?r=2 | |
| HTTP/1.1 200 OK | |
| X-Riak-Vclock: a85hYGBgzGDKBVIcMRuucwXPO6ubwZTImMfKMCtA+CxfFgA= | |
| Vary: Accept-Encoding | |
| Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact) | |
| Link: </buckets/animals>; rel="up" | |
| Last-Modified: Mon, 16 Jun 2014 11:27:22 GMT | |
| ETag: "1HaofJkNoXFIbzv8NgU4Qo" | |
| Date: Mon, 30 Jun 2014 14:46:30 GMT | |
| Content-Type: application/json | |
| Content-Length: 58 | |
| {"nickname": "The Wonder Dog", "breed": "German Shepherd"} |
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
| $ grep -rn anti_entropy, dev/*/etc/app.config | grep -v %% | |
| dev/dev1/etc/app.config:93: {anti_entropy, {off, [debug]}}, | |
| dev/dev2/etc/app.config:93: {anti_entropy, {off, [debug]}}, | |
| dev/dev3/etc/app.config:93: {anti_entropy, {off, [debug]}}, |
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
| $ curl http://localhost:10018/buckets/animals/props | jq "." | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 411 100 411 0 0 183k 0 --:--:-- --:--:-- --:--:-- 200k | |
| { | |
| "props": { | |
| "young_vclock": 20, | |
| "w": 1, | |
| "small_vclock": 50, | |
| "rw": "quorum", | |
| "n_val": 3, | |
| "linkfun": { | |
| "fun": "mapreduce_linkfun", | |
| "mod": "riak_kv_wm_link_walker" | |
| }, | |
| "last_write_wins": false, | |
| "dw": "quorum", | |
| "chash_keyfun": { | |
| "fun": "chash_std_keyfun", | |
| "mod": "riak_core_util" | |
| }, | |
| "big_vclock": 50, | |
| "basic_quorum": false, | |
| "allow_mult": false, | |
| "name": "animals", | |
| "notfound_ok": true, | |
| "old_vclock": 86400, | |
| "postcommit": [], | |
| "pr": 0, | |
| "precommit": [], | |
| "pw": 0, | |
| "r": 3 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment