First of all, I had tested it again, the be behavior is what you had said.
I used the following command you gave to start rancher.
docker run -d -p 8080:8080 rancher/server
I also used the command to start the rancher server for the second time. It start another container, so all data had lost, I need to register the agents again. It's my mistake.
But it's easy to make user lack of experience a litter confuse. It's better to give some hints. :)
I start the stopped container again, it keeps the agents' info.
Next, From my experience for developing management system, it's not good design for managed large scale servers like current method. The following methods maybe better.
1. Provide an auto scan methods, give the IP sets or IP ranges to scan, and added the agents automatically.
2. Every agent know the server IP, if the server had not changed, when server start, agents may notify the server to add them again.
3. Giving the IP sets or IP ranges and ssh authentication, server should using ssh method to install the agents and make the hosts(VMs) become the manged hosts(VMs)
4. Like Bosh and Cloud Foundry, we may using the other deployment tool to provision the manged hosts(VM), the provisioned hosts(VM) automatically add them to the managed hosts. It's a little similar as the method 3.
Think about the HA reason and integration with the different system, it's better to provide the option to separate the ranch server and the database and give the user choice to select RDBMS in the future.
The following features maybe needed in the production environment:
1. provide the router to forwarding the request from outside to the app automatically.
2. start the app by not specify the host (assign the host automatically by policies)
3. provide fail-over functions to migrate the unavailable app to other hosts.
...
Wish the rancher server to be an awesome system. :)
在 2015年5月13日星期三 UTC+8下午9:11:55,Darren S写道: