카타코더 - Handling Timeouts Between Microservices

1 개요[ | ]

카타코더 - Handling Timeouts Between Microservices
카타코더 - Increasing Microservices Reliability with Istio
# 코스
카타코더 - Simulating Failures Between Microservices
카타코더 - Handling Timeouts Between Microservices
카타코더 - Handling Failures With Circuit Breakers

2 Bookinfo Application[ | ]

Bookinfo-noistio.svg

master $ kubectl get pods
NAME                             READY     STATUS    RESTARTS   AGE
details-v1-7b5f4fc575-7hmt5      2/2       Running   0          1m
productpage-v1-c86d5ddf9-gt9zk   2/2       Running   0          1m
ratings-v1-58d59948f5-bww54      2/2       Running   0          1m
reviews-v1-6d9787f845-f4566      2/2       Running   0          1m
reviews-v2-84b4476485-q6qhb      2/2       Running   0          1m
reviews-v3-55d6499f7c-s669h      2/2       Running   0          1m

3 Bookinfo Reviews v2[ | ]

reviewsV2.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: reviews
spec:
  hosts:
    - reviews
  http:
  - route:
    - destination:
        host: reviews
        subset: v2
master $ kubectl apply -f reviewsV2.yaml
virtualservice.networking.istio.io/reviews created

4 Add Rating Delay[ | ]

ratingDelay.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: ratings
spec:
  hosts:
  - ratings
  http:
  - fault:
      delay:
        percent: 100
        fixedDelay: 5s
    route:
    - destination:
        host: ratings
        subset: v1
master $ kubectl apply -f ratingDelay.yaml
virtualservice.networking.istio.io/ratings created

5 Configure Timeout[ | ]

virtualServiceReviews.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: reviews
spec:
  hosts:
  - reviews
  http:
  - route:
    - destination:
        host: reviews
        subset: v2
    timeout: 0.5s
master $ kubectl apply -f virtualServiceReviews.yaml
virtualservice.networking.istio.io/reviews configured

6 Visit Jaeger Dashboard[ | ]

  • Jaeger dashboard
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}