无法在中间层dc/os上旋转停靠的cassandra星团

mlnl4t2r  于 2021-06-14  发布在  Cassandra
关注(0)|答案(0)|浏览(243)

有没有人能想到用docker在中层dc/os上创建一个cassandra集群?
问题是cassandra容器每隔几秒钟就会启动一次。
似乎marathon无法获得新创建容器的运行状况,因为它不断地创建新容器。在dc/os gui服务调试中,它显示

State: TASK_FAILED
Message: Container terminated with signal Broken pipe

在检查机器时,容器正在启动并运行,而且每隔一两分钟就会重复创建新的容器。
为什么marathon没有从成功启动的容器中得到正确的响应,从而停止创建新的容器?
我正在共享服务的当前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

如果有人知道怎么回事,请帮忙?如果需要,我可以分享更多细节。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题