3

If the virtual service is used with the mesh gateway then retryRemoteLocalities and attempts are not working. Is it by design or I am missing something?

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: myapp
spec:
  hosts:
    - myapp.default.svc.cluster.local

  gateways:
    - mesh

  http:
    - name: myapp
      route:
        - destination:
            host: myapp
            port:
              number: 8000

      retries:
        attempts: 5
        retryOn: 500,502,retriable-status-codes,connect-failure,reset,gateway-error,refused-stream
        retryRemoteLocalities: true

Istio 1.14.1 Kubernetes: 1.24.3

Jonas
  • 4,683
  • 4
  • 45
  • 81
  • Is your issue resolved? If yes, can you provide the resolution steps you have followed and provide it as an answer for the greater visibility of the community. – Veera Nagireddy Oct 04 '22 at 15:54
  • I didn't manage to solve it. We had to implement retry feature in our application. – Jonas Oct 10 '22 at 06:03
  • Try this similar [stack question](https://stackoverflow.com/questions/66345392/istio-sidecar-to-retry-on-specified-status-codes-503) may help to resolve your issue. – Veera Nagireddy Oct 18 '22 at 10:49
  • This issue is related to the `mesh` gateway setting and not to status code. – Jonas Oct 19 '22 at 11:51
  • In the yaml configuration, Delete “retryRemoteLocalities: true”, and add perTryTimeout :2s. For details refer to HTTPRetry. – Veera Nagireddy Oct 27 '22 at 11:24
  • Remote localities must be tried. Otherwise, it is useless for me. I am unable to find the reason it should not work as expected. – Jonas Oct 30 '22 at 06:32

0 Answers0