March 2020
Intermediate to advanced
626 pages
14h 45m
English
Application timeout is disabled by default. Let's set the request timeout to 0.5 seconds for the reviews service:
# Script : 10-set-request-timeout.yamlapiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: reviewsspec: hosts: - reviews http: - route: - destination: host: reviews subset: v2 timeout: 0.5s
$ kubectl -n istio-lab apply -f 10-set-request-timeout.yamlvirtualservice.networking.istio.io/reviews configured
The code snippet for productpage has two retires, as shown in the following code. productpage calls the reviews service, which now has a timeout of 0.5 seconds, which was defined through the virtual service. The response ...
Read now
Unlock full access