linzhengen / tech-notes

My tech notes write in github issues🧲
1 stars 0 forks source link

[20211206] `ignore_health_on_host_removal` でenvoyのヘルスチェックを待たず、サービス検出から削除できる #158

Open linzhengen opened 2 years ago

linzhengen commented 2 years ago

Doc

https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto

使用例

https://github.com/envoyproxy/envoy/pull/9357 で drain_connections_on_host_removal からrenameされた

      clusters:
      - name: api
        connect_timeout: 5s
        type: STRICT_DNS
        dns_lookup_family: V4_ONLY
        lb_policy: ROUND_ROBIN
        ignore_health_on_host_removal: true
        http2_protocol_options: {}
        load_assignment:
          cluster_name: api
          endpoints:
          - lb_endpoints:
            - endpoint:
                address:
                  socket_address:
                    address: api-service.default.svc.cluster.local
                    port_value: 8080
        health_checks:
          timeout: 2s
          interval: 3s
          unhealthy_threshold: 2
          healthy_threshold: 2
          grpc_health_check: {}