Containerpilot 配置文件reload
摘要:containerpilot -reload -config ./containerpilot.json 进程号不变,重新加载配置文件
阅读全文
Containerpilot 配置文件模板
摘要:{ "consul": "{{ .CONSUL }}:8500", "logging": { "level": "INFO", "format": "default", "output": "stdout" }, "jobs": [ { "name": '{{ .SERVICE_NAME|defau
阅读全文
Containerpilot 配置文件 之 Telemetry
摘要:如果提供telemetry选项,ContainerPilot将公开可用于刮擦性能telemetry的Prometheus HTTP客户端界面。 telemetry接口被公告为consul服务。 telemetry服务的每个metric为Prometheus客户端库配置收集器。 然后,Promethe
阅读全文
Containerpilot 配置文件 之 Watches
摘要:watch是在consul进行监视的服务配置。 watch轮询服务的状态,并在服务变得健康,变得不健康或者实例数量发生变化时发出事件。 请注意,watch不包括行为; watch只发出事件,以便job可以消耗该事件。 watch配置仅包括以下字段: 每当发生变化时, changed事件。 每当观看的
阅读全文
Containerpilot 配置文件示例
摘要:{ consul: "localhost:8500", logging: { level: "INFO", format: "default", output: "stdout" }, jobs: [ { name: "app", exec: "/bin/app", restarts: "unlim
阅读全文
Containerpilot 配置文件 之 Jobs
摘要:ContainerPilot job是用户定义的进程和规则,用于何时执行它,如何进行健康检查,以及如何向Consul做广告。 这些规则旨在允许灵活性覆盖几乎可能要运行的任何类型的进程。 一些可能的job配置包括: 一个长时间运行的应用程序,如Web服务器,如果崩溃,需要重新启动。 一次性设置任务,在
阅读全文
Containerpilot 配置文件 之 consul
摘要:Consul ContainerPilot使用Hashicorp的consul在作为服务的容器中注册工作。 Watches查询consul找出其他服务的状态。 Client configuration ContainerPilot配置文件中的consul域配置ContainerPilot的Consu
阅读全文