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

 

上一篇:DS18B20初上电显示85℃问题


下一篇:haproxy匹配不同路径转发