update README.md

This commit is contained in:
zhongyh16 2017-06-05 13:11:48 +08:00
parent 7a29ec0437
commit 0b5e5a07e4
2 changed files with 15 additions and 0 deletions

View File

@ -106,6 +106,13 @@ For multi hosts distributed environment, **must** start
**dep/etcd-multi-nodes.sh** in each etcd server hosts. This scripts
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 ###
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
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`
The master logs are in **FS_PREFIX/local/log/docklet-master.log** and

View File

@ -196,22 +196,27 @@ case "$1" in
init)
do_start_master "new"
do_start_proxy
do_start_web
;;
start)
do_start_master "recovery"
do_start_proxy
do_start_web
;;
stop)
do_stop_master
do_stop_proxy
do_stop_web
;;
restart)
do_stop_master
do_stop_proxy
do_stop_web
do_start_master "recovery"
do_start_proxy
do_start_web
;;
start_proxy)