Retry
If the retry option is enabled, the Envoy proxy will retry to connect to the service upon a service access failure, which improves the access quality and success rate.
Configure the YAML file as follows:
apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: ratings-route spec: hosts: - ratings.prod.svc.cluster.local http: - route: - destination: host: ratings.prod.svc.cluster.local subset: v1 retries: # Configure retry parameters. attempts: 3 perTryTimeout: 2s retryOn: connect-failure,refused-stream,503
You can configure the parameters based on site requirements.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot