Açıklaması şöyle
Istio: A full open-source solution founded by IBM, Google and Lyft.
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
Açıklaması şöyleapiVersion: networking.istio.io/v1alpha3kind: DestinationRulemetadata:name: circuit-breaker-for-the-whole-default-namespacespec:# This is the name of the k8s service that we're configuringhost: "demo -service.default.svc.cluster.local"trafficPolicy:outlierDetection: # Circuit Breakers have been SWITCHED ONmaxEjectionPercent: 100consecutive5xxErrors: 2interval: 10sbaseEjectionTime: 30s
- 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