zoukankan      html  css  js  c++  java
  • Ambassador-07-熔断

    Ambassador的熔断机制的定义

    circuit_breakers:
    - priority: <string>
      max_connections: <integer>
      max_pending_requests: <integer>
      max_requests: <integer>
      max_retries: <integer>
    • priority:优先级,默认是default,还可以是high

    • max_connections:最大连接数,默认是1024

    • max_pending_requests:等待连接最大请求数,默认是1024

    • max_requests:最大请求数,默认是1024

    • max_retries:最大重试次数。默认是1024

    ---
    apiVersion: getambassador.io/v2
    kind:  Mapping
    metadata:
      name:  quote-backend
    spec:
    prefix: /backend/
    service: quote
    circuit_breakers:
    - max_connections: 2048
      max_pending_requests: 2048

    全局熔断器

    apiVersion: getambassador.io/v2
    kind:  Module
    metadata:
      name:  ambassador
    spec:
      config:
        circuit_breakers:
        - max_connections: 2048
          max_pending_requests: 2048
    ---
    apiVersion: getambassador.io/v2
    kind:  Mapping
    metadata:
      name:  quote-backend
    spec:
    prefix: /backend/
    service: quote
  • 相关阅读:
    移动端picker插件
    腾讯云主机如何使用root账号登录,不能使用root登录怎么办
    windows安装composer总结
    ubuntu安装git
    workman
    权限设计
    app接口
    git提交流程简述
    mysql分区partition详解
    html元素拖拽
  • 原文地址:https://www.cnblogs.com/shix0909/p/12960754.html
Copyright © 2011-2022 走看看