Skip to content

Commit

Permalink
Update circuit_breaker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DeshDeepakKant authored Jan 23, 2025
1 parent 7850a3b commit 5295889
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions content/en/docs/userguide/circuit_breaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,18 @@ spec:
Apply the circuit breaker configuration:
```yaml
# circuit-breaker.yaml
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
apiVersion: kmesh.net/v1alpha1
kind: CircuitBreaker
metadata:
name: test-circuit-breaker
spec:
host: test-service
trafficPolicy:
connectionPool:
http:
http1MaxPendingRequests: 1
maxRequestsPerConnection: 1
outlierDetection:
consecutive5xxErrors: 3
interval: 5s
baseEjectionTime: 30s
service: test-service
rules:
- priority: HIGH
maxConnections: 10
maxPendingRequests: 5
maxRequests: 20
maxRetries: 3
```
Apply the configurations:
Expand Down Expand Up @@ -213,4 +210,4 @@ kubectl describe destinationrule test-circuit-breaker
```bash
kubectl logs deploy/test-service
kubectl logs deploy/fortio
```
```

0 comments on commit 5295889

Please sign in to comment.