我们在6个vmware vm上使用rhel7运行Mesosphere DC / OS 1.7版,我们现在想添加更多代理。通过从引导节点运行dcos_generate_confg.sh --uninstall,我们能够从最初的2个代理(vms)增加到6个代理(vms)。然后,我们将新的ip地址添加到genconf / config.yaml中的代理列表中,并运行--genconf, - preflight, - deploy, - postflight。然而,这仍然有效--uninstall吹走了我们现有的公共代理,我们不得不重新安装并重新安装。
是否有其他方法可以在不运行--uninstall的情况下添加代理?在引擎盖下做什么非常紧张。谢谢!
答案 0 :(得分:7)
就我而言,我也很难理解如何将节点添加到集群,然后我发现这个链接允许我这样做:
The Mesosphere guide to getting started with DC/OS: Part 2
转到“添加面向Internet的HAproxy负载均衡器”一章。
总结一下我做了什么,哪些有用:
BootStrap节点:
sudo vi ~/genconf/config.yaml ## add node slave IP
sudo ./dcos_generate_config.sh --install-prereqs
sudo ./dcos_generate_config.sh --preflight
sudo scp -r -i genconf/ssh_key genconf/serve $NEW_NODE_IP:~
##复制到节点
新节点:
sudo mkdir /opt/dcos_install_tmp
sudo cp -r serve/* /opt/dcos_install_tmp/
cd /opt/dcos_install_tmp/
chmod +x dcos_install.sh
Agent Private
sudo ./dcos_install.sh slave
Agent Public
sudo ./dcos_install.sh slave_public
BootStrap节点:
sudo ./dcos_generate_config.sh --postflight
我希望这可以帮到你!