• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2017年7月19日

Containerpilot 配置文件 之 Telemetry
摘要: 如果提供telemetry选项,ContainerPilot将公开可用于刮擦性能telemetry的Prometheus HTTP客户端界面。 telemetry接口被公告为consul服务。 telemetry服务的每个metric为Prometheus客户端库配置收集器。 然后,Promethe 阅读全文
posted @ 2017-07-19 17:19 会飞の鱼 阅读(857) 评论(0) 推荐(0)
 
Containerpilot 配置文件 之 Watches
摘要: watch是在consul进行监视的服务配置。 watch轮询服务的状态,并在服务变得健康,变得不健康或者实例数量发生变化时发出事件。 请注意,watch不包括行为; watch只发出事件,以便job可以消耗该事件。 watch配置仅包括以下字段: 每当发生变化时, changed事件。 每当观看的 阅读全文
posted @ 2017-07-19 17:06 会飞の鱼 阅读(161) 评论(0) 推荐(0)
 
Containerpilot 配置文件示例
摘要: { consul: "localhost:8500", logging: { level: "INFO", format: "default", output: "stdout" }, jobs: [ { name: "app", exec: "/bin/app", restarts: "unlim 阅读全文
posted @ 2017-07-19 16:37 会飞の鱼 阅读(397) 评论(0) 推荐(0)
 
Containerpilot 配置文件 之 Jobs
摘要: ContainerPilot job是用户定义的进程和规则,用于何时执行它,如何进行健康检查,以及如何向Consul做广告。 这些规则旨在允许灵活性覆盖几乎可能要运行的任何类型的进程。 一些可能的job配置包括: 一个长时间运行的应用程序,如Web服务器,如果崩溃,需要重新启动。 一次性设置任务,在 阅读全文
posted @ 2017-07-19 16:35 会飞の鱼 阅读(341) 评论(0) 推荐(0)
 
Containerpilot 配置文件 之 consul
摘要: Consul ContainerPilot使用Hashicorp的consul在作为服务的容器中注册工作。 Watches查询consul找出其他服务的状态。 Client configuration ContainerPilot配置文件中的consul域配置ContainerPilot的Consu 阅读全文
posted @ 2017-07-19 16:05 会飞の鱼 阅读(859) 评论(0) 推荐(0)
 
Redis cli 操作
摘要: 备份 root@575e8088b5fb:/data# redis-cli LASTSAVE(integer) 1500273743root@575e8088b5fb:/data# redis-cli BGSAVE Background saving startedroot@575e8088b5fb 阅读全文
posted @ 2017-07-19 08:54 会飞の鱼 阅读(138) 评论(0) 推荐(0)