docker - 无法在 Mesosphere DC/OS 上旋转 dockerized cassandra 集群
问题描述
谁能想到使用 Docker 在 Mesosphere DC/OS 上创建 Cassandra 集群?
问题是 Cassandra 容器每隔几秒钟就会启动一次。
Marathon 似乎无法获取新创建容器的健康状态,因为它不断地创建新容器。在 DC/OS GUI 服务调试中,它显示
State: TASK_FAILED
Message: Container terminated with signal Broken pipe
在检查机器时,容器已启动并运行,并且每隔一两分钟就会重复创建新容器。
为什么 marathon 没有从它已经成功启动的容器中得到正确的响应,以便它可以停止创建一个新的?
我正在共享该服务的当前 JSON 配置。卡桑德拉.json
{
"id": "/cassandra",
"acceptedResourceRoles": [
"*"
],
"backoffFactor": 1.15,
"backoffSeconds": 1,
"container": {
"portMappings": [
{
"containerPort": 8000,
"hostPort": 0,
"protocol": "tcp",
"servicePort": 10003,
"name": "main"
}
],
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "cassandra:3.9",
"forcePullImage": false,
"privileged": false,
"parameters": []
}
},
"cpus": 3,
"disk": 10000,
"instances": 1,
"maxLaunchDelaySeconds": 300,
"mem": 6000,
"gpus": 0,
"networks": [
{
"mode": "container/bridge"
}
],
"requirePorts": false,
"upgradeStrategy": {
"maximumOverCapacity": 1,
"minimumHealthCapacity": 1
},
"killSelection": "YOUNGEST_FIRST",
"unreachableStrategy": {
"inactiveAfterSeconds": 0,
"expungeAfterSeconds": 0
},
"fetch": [],
"constraints": []
}
DC/OS open source version 1.13
Marathon Version 1.8.194
如果有人知道发生了什么,请帮忙?如果需要,我可以分享更多细节。
解决方案
推荐阅读
- python - 使用文件选择器打开文件 - kivy python
- angular - 使用 mat select multiple 实现搜索过滤器
- asp.net-core - 如何部署 BackgroundService?
- r - OSRM 服务器返回错误:doTryCatch 中的错误(return(expr), name, parentenv, handler): object 'res' not found
- python - 覆盖 Blob 存储上的 blob - 获取“只读”异常
- javascript - 事件不是由我的 javascript SignalR Azure 连接触发的
- r - 闪亮的应用程序产生错误:“参数暗示不同的行数:0、1”
- android - 如何在android撰写卡的角落创建一个图标
- python-3.x - 我们如何从谷歌数据存储中的特定命名空间中获取所有种类的列表?
- class - 如何在 C++ 中的两个层次继承类之间定义友元函数