update README.md
This commit is contained in:
parent
7a29ec0437
commit
0b5e5a07e4
10
README.md
10
README.md
|
@ -106,6 +106,13 @@ For multi hosts distributed environment, **must** start
|
||||||
**dep/etcd-multi-nodes.sh** in each etcd server hosts. This scripts
|
**dep/etcd-multi-nodes.sh** in each etcd server hosts. This scripts
|
||||||
requires users providing the etcd server address as parameters.
|
requires users providing the etcd server address as parameters.
|
||||||
|
|
||||||
|
### supermaster ###
|
||||||
|
Supermaster is a server consist of web server, user server and a master server instance.
|
||||||
|
|
||||||
|
If it is the first time you start docklet, run `bin/docklet-supermaster init`
|
||||||
|
to init and start a docklet master, web server and user server. Otherwise, run `bin/docklet-supermaster start`.
|
||||||
|
When you start a supermaster,you don't need to start an extra master in the same cluster.
|
||||||
|
|
||||||
### master ###
|
### master ###
|
||||||
|
|
||||||
First, select a server with 2 network interface card, one having a
|
First, select a server with 2 network interface card, one having a
|
||||||
|
@ -117,6 +124,9 @@ to init and start docklet master. Otherwise, run `bin/docklet-master start`,
|
||||||
which will start master in recovery mode in background using
|
which will start master in recovery mode in background using
|
||||||
conf/docklet.conf.
|
conf/docklet.conf.
|
||||||
|
|
||||||
|
Please fill the USER_IP and USER_PORT in conf/docklet.conf, it is the ip and port of user server.
|
||||||
|
By default, it is `localhost` and `9100`
|
||||||
|
|
||||||
You can check the daemon status by running `bin/docklet-master status`
|
You can check the daemon status by running `bin/docklet-master status`
|
||||||
|
|
||||||
The master logs are in **FS_PREFIX/local/log/docklet-master.log** and
|
The master logs are in **FS_PREFIX/local/log/docklet-master.log** and
|
||||||
|
|
|
@ -196,22 +196,27 @@ case "$1" in
|
||||||
init)
|
init)
|
||||||
do_start_master "new"
|
do_start_master "new"
|
||||||
do_start_proxy
|
do_start_proxy
|
||||||
|
do_start_web
|
||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
do_start_master "recovery"
|
do_start_master "recovery"
|
||||||
do_start_proxy
|
do_start_proxy
|
||||||
|
do_start_web
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
do_stop_master
|
do_stop_master
|
||||||
do_stop_proxy
|
do_stop_proxy
|
||||||
|
do_stop_web
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
do_stop_master
|
do_stop_master
|
||||||
do_stop_proxy
|
do_stop_proxy
|
||||||
|
do_stop_web
|
||||||
do_start_master "recovery"
|
do_start_master "recovery"
|
||||||
do_start_proxy
|
do_start_proxy
|
||||||
|
do_start_web
|
||||||
;;
|
;;
|
||||||
|
|
||||||
start_proxy)
|
start_proxy)
|
||||||
|
|
Loading…
Reference in New Issue