Configuring Timeouts
To limit how long Linkerd will wait before failing an outgoing request toanother service, you can configure timeouts. These work by adding a little bitof extra information to the service profile forthe service you’re sending requests to.
Each route may define a timeout which specifies the maximum amount of time towait for a response (including retries) to complete after the request is sent.If this timeout is reached, Linkerd will cancel the request, and return a 504response. If unspecified, the default timeout is 10 seconds.
spec:
routes:
- condition:
method: HEAD
pathRegex: /authors/[^/]*\.json
name: HEAD /authors/{id}.json
timeout: 300ms
Check out the timeouts section of the books demo fora tutorial of how to configure timeouts.