无法在Mesosphere DC / OS上旋转dockerized cassandra集群

时间:2019-06-29 13:16:41

标签: docker cassandra marathon dcos

有人可以使用Docker在Mesosphere DC / OS上创建Cassandra集群吗?

问题在于,Cassandra容器每隔几秒钟就会不断启动。

似乎Marathon无法获得新创建的容器的运行状况,因为它一直在不断创建新容器。在DC / OS GUI服务调试中,它显示

State: TASK_FAILED
Message: Container terminated with signal Broken pipe

在机器上进行检查时,容器每隔一两分钟就会启动并运行,并且新容器也在不断创建。

为什么马拉松无法从成功启动的容器中获得正确的响应,从而使其无法再创建新容器?

我正在共享该服务的当前JSON配置。 Cassandra.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

如果有人知道发生了什么,请提供帮助。如果需要,我可以分享更多细节。

0 个答案:

没有答案