consul用户界面和服务发现不会更新服务

olqngx59  于 2021-06-26  发布在  Mesos
关注(0)|答案(1)|浏览(442)

当服务更改时,consur用户界面不会更新服务。问题是,我启动了一个example.json到marathon,它在consul用户界面中显示为一个服务,但当我从marathon中删除该应用时,它不会从consur ui中删除它。可能是什么?

ifmq2ha2

ifmq2ha21#

我使用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"
  ]
}

相关问题