5 Eylül 2021 Pazar

Istio

Giriş
Açıklaması şöyle
Istio: A full open-source solution founded by IBM, Google and Lyft.
API Gateway
Istio, VirtualService ve Gateway sunar

Sidecar
Her servisin yanında çalışır. Böylece servisler arasındaki trafik izlenebilir ve yönetilebilir.

CircuitBreaker
Örnek
Şöyle yaparız
  
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: circuit-breaker-for-the-whole-default-namespace
spec:
# This is the name of the k8s service that we're configuring
  host: "demo -service.default.svc.cluster.local" 

  trafficPolicy:
    outlierDetection: # Circuit Breakers have been SWITCHED ON
      maxEjectionPercent: 100
      consecutive5xxErrors: 2
      interval: 10s
      baseEjectionTime: 30s
Açıklaması şöyle
- consecutive5xxErrors Number of 5xx errors before a host is ejected from the connection pool.
- maxEjectionPercent Maximum % of hosts in the load balancing pool for the upstream service that can be ejected. Defaults to 10%.
- baseEjectionTime Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected.
- interval Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.

Hiç yorum yok:

Yorum Gönder