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
  • 相关阅读:
    79.Word Search
    78.Subsets
    77.Combinations
    75.Sort Colors
    74.Search a 2D Matrix
    73.Set Matrix Zeroes
    71.Simplify Path
    64.Minimum Path Sum
    63.Unique Paths II
    Docker 拉取 oracle 11g镜像配置
  • 原文地址:https://www.cnblogs.com/shix0909/p/12960754.html
Copyright © 2011-2022 走看看