0

Consul 用户界面在服务更改时不会更新服务。问题是我启动了一个 example.json 到 marathon,它在 consul 用户界面中显示为服务,但是当我从 marathon 中删除该应用程序时,它并没有从 consul UI 中删除它。会是什么呢?

4

1 回答 1

0

我使用 ciscocloud/mesos-consul 向 consul 注册 mesos 应用程序,效果很好

 {
  "id": "/mesos-consul",
  "cmd": null,
  "cpus": 0.33,
  "mem": 128,
  "disk": 0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "volumes": [],
    "docker": {
      "image": "ciscocloud/mesos-consul",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 0,
          "hostPort": 0,
          "servicePort": 10004,
          "protocol": "tcp",
          "labels": {}
        }
      ],
      "privileged": false,
      "parameters": [],
      "forcePullImage": false
    }
  },
  "portDefinitions": [
    {
      "port": 10004,
      "protocol": "tcp",
      "labels": {}
    }
  ],
  "args": [
    "--zk=zk://zookeeper-hostname:2181/mesos",
    "--mesos-ip-order=mesos",
    "--log-level=err",
    "--refresh=1s"
  ]
}
于 2016-10-19T21:23:41.860 回答