Last active
August 29, 2015 14:07
-
-
Save dminkovsky/9d051b6944cbde2a2f79 to your computer and use it in GitHub Desktop.
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
# No rethinks running | |
[root@coreos-1 ~]# dig rethinkdb-29015.skydns.local @127.0.0.1 [4/528] | |
; <<>> DiG 9.9.4-P2-RedHat-9.9.4-15.P2.fc20 <<>> rethinkdb-29015.skydns.local @127.0.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9478 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;rethinkdb-29015.skydns.local. IN A | |
;; AUTHORITY SECTION: | |
skydns.local. 60 IN SOA ns.dns.skydns.local. hostmaster.skydns.local. 1413900000 28800 7200 604800 60 | |
;; Query time: 21 msec | |
;; SERVER: 127.0.0.1#53(127.0.0.1) | |
# Launch 1st rethink: | |
core@coreos-1 ~ $ cat ./rethinkdb | |
#!/bin/bash | |
/usr/bin/docker run \ | |
--name rethinkdb \ | |
--rm \ | |
--dns=172.17.42.1 \ | |
-p 8080:8080 \ | |
-p 28015:28015 \ | |
-p 29015:29015 \ | |
dockerfile/rethinkdb \ | |
rethinkdb \ | |
--join rethinkdb-29015.skydns.local:29015 \ | |
--bind all \ | |
--canonical-address 10.0.0.101 | |
core@coreos-1 ~ $ ./rethinkdb | |
info: Initializing directory /data/rethinkdb_data | |
info: Running rethinkdb 1.15.1~0trusty (GCC 4.8.2)... | |
info: Running on Linux 3.16.2+ x86_64 | |
info: Using cache size of 100 MB | |
warn: Requested cache size is larger than available memory. | |
warn: Cache size is very low and may impact performance. | |
info: Loading data from directory /data/rethinkdb_data | |
info: Listening for intracluster connections on port 29015 | |
warn: Attempted to join self, peer ignored | |
info: Attempting connection to 0 peers... | |
info: Listening for client driver connections on port 28015 | |
info: Listening for administrative HTTP connections on port 8080 | |
info: Listening on addresses: 127.0.0.1, 172.17.0.73, ::1, fe80::64a4:60ff:fef3:c3e9%144 | |
info: Server ready | |
## After this: | |
[root@coreos-1 ~]# dig rethinkdb-29015.skydns.local @127.0.0.1 [4/547] | |
; <<>> DiG 9.9.4-P2-RedHat-9.9.4-15.P2.fc20 <<>> rethinkdb-29015.skydns.local @127.0.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25281 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;rethinkdb-29015.skydns.local. IN A | |
;; ANSWER SECTION: | |
rethinkdb-29015.skydns.local. 3600 IN A 10.0.0.101 | |
;; Query time: 17 msec | |
;; SERVER: 127.0.0.1#53(127.0.0.1) | |
## Launch 2nd rethink | |
core@core2 ~ $ cat ./rethinkdb | |
#!/bin/bash | |
/usr/bin/docker run \ | |
--name rethinkdb \ | |
--rm \ | |
--dns=172.17.42.1 \ | |
-p 8080:8080 \ | |
-p 28015:28015 \ | |
-p 29015:29015 \ | |
dockerfile/rethinkdb \ | |
rethinkdb \ | |
--join rethinkdb-29015.skydns.local:29015 \ | |
--bind all \ | |
--canonical-address 10.0.0.102 | |
core@core2 ~ $ ./rethinkdb | |
info: Initializing directory /data/rethinkdb_data | |
info: Running rethinkdb 1.15.1~0trusty (GCC 4.8.2)... | |
info: Running on Linux 3.16.2+ x86_64 | |
info: Using cache size of 100 MB | |
warn: Cache size does not leave much memory for server and query overhead (available memory: 240 MB). | |
warn: Cache size is very low and may impact performance. | |
info: Loading data from directory /data/rethinkdb_data | |
info: Listening for intracluster connections on port 29015 | |
warn: Attempted to join self, peer ignored | |
info: Attempting connection to 0 peers... | |
info: Listening for client driver connections on port 28015 | |
info: Listening for administrative HTTP connections on port 8080 | |
info: Listening on addresses: 127.0.0.1, 172.17.0.21, ::1, fe80::d0e7:5ff:febd:f91a%42 | |
info: Server ready | |
# After 2nd launches | |
[root@coreos-1 ~]# dig rethinkdb-29015.skydns.local @127.0.0.1 [5/567] | |
; <<>> DiG 9.9.4-P2-RedHat-9.9.4-15.P2.fc20 <<>> rethinkdb-29015.skydns.local @127.0.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4591 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;rethinkdb-29015.skydns.local. IN A | |
;; ANSWER SECTION: | |
rethinkdb-29015.skydns.local. 3600 IN A 10.0.0.102 | |
rethinkdb-29015.skydns.local. 3600 IN A 10.0.0.101 | |
;; Query time: 17 msec |
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
core@core2 ~ $ ./docker-enter rethinkdb | |
[ root@34f1227dd2b6:~ ]$ dig rethinkdb-29015.skydns.local | |
; <<>> DiG 9.9.5-3-Ubuntu <<>> rethinkdb-29015.skydns.local | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54840 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;rethinkdb-29015.skydns.local. IN A | |
;; ANSWER SECTION: | |
rethinkdb-29015.skydns.local. 3600 IN A 10.0.0.102 | |
rethinkdb-29015.skydns.local. 3600 IN A 10.0.0.101 | |
;; Query time: 12 msec | |
;; SERVER: 172.17.42.1#53(172.17.42.1) | |
;; WHEN: Tue Oct 21 14:19:10 UTC 2014 | |
;; MSG SIZE rcvd: 78 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment