Updated on 2025-04-25 GMT+08:00

Timeout

The timeout option specifies the amount of time that an Envoy proxy has to wait before receiving a response from a service. If no response is received within the timeout duration, access to the service is considered as a failure to prevent resource locks and request blocks.

Configure the YAML file as follows:

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: my-productpage-rule
  namespace: istio-system
spec:
  hosts:
  - productpage.prod.svc.cluster.local 
  http:
  - timeout: 5s                   # Configure request timeout parameters.
    route:
    - destination:
        host: productpage.prod.svc.cluster.local

You can configure the parameters based on site requirements.