azure - 无法开始马拉松-lb
问题描述
无论我使用默认配置还是自定义(减少 cpus,因为我正在试用),我的 maraton-lb 都无法启动,并且在健康检查中不停地失败。我究竟做错了什么?
日志:
[ALERT] 184/143843 (321) : Starting frontend marathon_http_in: cannot bind socket [0.0.0.0:80]
[ALERT] 184/143843 (321) : sendmsg logger #1 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #2 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #1 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #2 failed: No such file or directory (errno=2)
Received task health update, healthy: false
Received killTask for task marathon-lb.cbfaf218-7f97-11e8-aef1-70b3d5800001
马拉松-json:
{
"marathon-lb": {
"instances": 1.0, "mem": 1048.0, "cpus": 1
}
}
dcos package install --options=marathon-config.json marathon-lb
仅供参考,我尝试了很多配置。Azure docs、marathon docs、mesos docs 和各种不同的变体。总是一样的结果。
解决方案
你有其他东西已经绑定到端口 80 吗?Marathon-lb 通常部署到公共代理,因此配置通常比您发布的配置长 - 您是否尝试过使用默认配置?默认情况下,它还需要绑定到 80 和 443,以及它使用的非特权端口 - 该错误看起来无法绑定到任何部署的地方。
推荐阅读
- c++ - ESP32 和 Kotlin 服务器之间的套接字延迟不一致
- mysql - 有没有比 LEFT JOIN 更好的方法在 MYSQL 中将两个表连接在一起?它非常慢
- python - 如何在 DJango 中实现分支权限管理模型?
- tableau-api - Tableau 中子字符串的出现次数
- php - 如何从输出中获取特定的字符串值?
- python - 如何从 IntgerField(Timestamp) 转换为 python datetime
- ios - 根据另一个变量的值更改变量的值
- mule - 我正在使用 SDK 构建一个 mule4 自定义连接器。如何在操作类中获取 mule 消息对象的引用?
- reactjs - Docker + Flask + React + Axios + http-proxy-middleware 失败并显示“尝试代理到...时发生错误”
- python - 从 PHP 运行 Python,状态 0,不工作