[O’Reilly Media / Infinite Skills] Introduction to CoreOS Training Video [2015, ENG] : Deploying A DatabaseBacked Web Application : Deploying RethinkDB Database
DataBase Layer (RethinkDB) 8080 port - database admin dashboard
$ cd ~/coreos-vagrant
$ vi config.rb
Прописываем:
$forwarded_ports = {80 => 8000, 3000 => 3000, 8080 => 8080 }
$ vagrant reload
$ vagrant ssh core-01 -- -A
core-01
$ vi [email protected]
$ vi [email protected]
$ fleetctl submit *
$ fleetctl list-unit-files
UNIT HASH DSTATE STATE TARGET
[email protected] 3f7611a inactive inactive -
[email protected] 5698af1 inactive inactive -
$ fleetctl start rethinkdb@1 rethinkdb-announce@1
$ fleetctl start rethinkdb@2 rethinkdb-announce@2
Несколько минут ждал, чтобы статус стал active running у всех сервисов
$ fleetctl list-units
UNIT MACHINE ACTIVE SUB
[email protected] 3408f7ab.../172.17.8.103 active running
[email protected] b2ca4512.../172.17.8.101 active running
[email protected] 3408f7ab.../172.17.8.103 active running
[email protected] b2ca4512.../172.17.8.101 active running
$ curl 172.17.8.101:8080
// лог
$ fleetctl journal -f --lines=50 rethinkdb@1
$ fleetctl journal -f --lines=50 rethinkdb@2
$ fleetctl journal -f --lines=50 ethinkdb-announce@1
$ fleetctl journal -f --lines=50 ethinkdb-announce@2
http://172.17.8.101:8080/#servers
http://172.17.8.103:8080/#servers