March 2020
Intermediate to advanced
626 pages
14h 45m
English
Linkerd allows a timeout
definition that defines a wait time before failing (or rerouting) requests to another service. To demonstrate this, let's add a 25 ms timeout to the same spec route from the previous section. When this timeout limit is exhausted, the request will be canceled and will return a 504 HTTP code. By default, the timeout is set at 10 seconds. Let's get started:
$ kubectl -n linkerd-lab patch sp authors.linkerd-lab.svc.cluster.local \--type json --patch='[{"op": "add","path": "/spec/routes/4/timeout","value": 25ms}]' ...Read now
Unlock full access