DCOS navstar服务无法在代理节点上启动

时间:2017-03-18 18:52:50

标签: dcos

我在开发服务器上设置了DC / OS,并且遇到了一个无法运行navstar服务的代理节点:

# journalctl -u dcos-navstar -b
Mar 18 13:45:15 localhost.localdomain systemd[1]: Starting Navstar: A distributed systems & network overlay orchestration engine...
Mar 18 13:45:15 localhost.localdomain check-time[5868]: Checking whether time is synchronized using the kernel adjtimex API.
Mar 18 13:45:15 localhost.localdomain check-time[5868]: Time can be synchronized via most popular mechanisms (ntpd, chrony, systemd-timesyncd, etc.)
Mar 18 13:45:15 localhost.localdomain check-time[5868]: Time is in sync!
Mar 18 13:45:15 localhost.localdomain ping[5870]: ping: ready.spartan: Name or service not known
Mar 18 13:45:15 localhost.localdomain systemd[1]: dcos-navstar.service: control process exited, code=exited status=2
Mar 18 13:45:15 localhost.localdomain systemd[1]: Failed to start Navstar: A distributed systems & network overlay orchestration engine.

ntpd服务已安装并正在运行(服务处于活动状态)。与ntpd的时间同步工作正常。请指教。

2 个答案:

答案 0 :(得分:1)

检查123端口是否已打开,并且未被iptables或其他防火墙阻止。或者尝试使用chrony作为服务来同步系统时钟和NTP服务器(它比ntp更准确,功能更多)。 对于CentOS:

tac inputfile

我在DC / OS上遇到了同样的问题。但不仅navstar.service,而且metronome.service失败(同时同步问题)。花了很多时间寻找问题。最后迁移到了chrony,问题就消失了。

答案 1 :(得分:0)

对于长时间运行的任务,请使用Marathon。对于一次性或cron任务,使用Chronos。您只需使用REST API通过上述框架在DCOS中放置和管理您的任务。我建议你使用容器。在这里,您可以阅读:micro-services at DCOS

相关问题