当通过马拉松部署Pod时,mesos master会停用代理

时间:2018-09-23 18:04:50

标签: mesos marathon

我设置了一个单节点mesos主服务器。当我通过Marathon WebUI部署应用程序时,它运行良好。

但是,当我使用马拉松API部署Pod时,mesos主节点会立即停用该代理,并且pod的创建会卡住。

根据文档,我无法通过Marathon Web部署Pod。只能使用API​​进行部署。

以下是从属日志:

  

在以下位置创建的日志文件:2018/09/23 17:20:37在计算机上运行:   centos-4vcpu-8gb-01日志行格式:[IWEF] mmdd hh:mm:ss.uuuuuu   线程ID文件:行] msg E0923 17:20:37.561741 19267 slave.cpp:4512]   无法处理状态更新确认(UUID:   7f42cf82-8b1f-4ab5-8cff-0beb917efa3f)   stubgen-db-pod.instance-ef81f6b3-bf54-11e8-88d8-0242845a02ba.stubgen-db-container   b606e9e2-b9ef-4b09-9b7d-3f6d0489bf58-0000的框架:找不到   任务的任务状态更新流   stubgen-db-pod.instance-ef81f6b3-bf54-11e8-88d8-0242845a02ba.stubgen-db-container   b606e9e2-b9ef-4b09-9b7d-3f6d0489bf58-0000的框架

有时,它显示“不是有效的容器”和“找不到容器”

我能够使用docker cli启动容器。

有人能让我知道是什么原因吗?

粘贴在我的广告连播定义下方:

{
    "id": "stubgen-db-pod",
    "containers": [
        {
            "name": "stubgen-db-container",
            "resources": {
                "cpus": 0.5,
                "mem": 1024
            },
            "endpoints": [
                {
                    "name": "stubgen-db",
                    "containerPort": 27017,
                    "hostPort": 0,
                    "protocol": [
                        "tcp"
                    ]
                }
            ],
            "image": {
                "kind": "DOCKER",
                "id": "<image_from_docker_repo>"
            },
            "healthCheck":{
                "http":{
                   "endpoint":"httpendpoint",
                   "path":"/ping",
                   "scheme":"HTTP"
                },
                "gracePeriodSeconds":30,
                "intervalSeconds":5,
                "maxConsecutiveFailures":3,
                "timeoutSeconds":3,
                "delaySeconds":2
            },
            "volumeMounts":[
                {
                   "name":"dbvolume",
                   "mountPath":"/data/db"
                }
            ]
        }
    ],
    "volumes":[
        {
          "name":"dbvolume"
        }
    ],
    "networks":[
      {
         "name":"dcos",
         "mode":"container"
      }
    ],
    "scaling":{
      "kind":"fixed",
      "instances":1,
      "maxInstances":null
    },
    "scheduling": {
      "backoff":{
         "backoff":1,
         "backoffFactor":1.15,
         "maxLaunchDelay":3600
      },
      "upgrade":{
         "minimumHealthCapacity":1,
         "maximumOverCapacity":1
      },
      "unreachableStrategy": {
         "inactiveAfterSeconds":900,
         "expungeAfterSeconds":604800
      }
    }
}

0 个答案:

没有答案
相关问题