{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2810","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2810/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2810/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2810/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/2810","id":310465243,"number":2810,"title":"serviceId.ribbon.MaxAutoRetriesNextServer not working in zuul","user":{"login":"lishengsam","id":13638226,"avatar_url":"https://avatars3.githubusercontent.com/u/13638226?v=4","gravatar_id":"","url":"https://api.github.com/users/lishengsam","html_url":"https://github.com/lishengsam","followers_url":"https://api.github.com/users/lishengsam/followers","following_url":"https://api.github.com/users/lishengsam/following{/other_user}","gists_url":"https://api.github.com/users/lishengsam/gists{/gist_id}","starred_url":"https://api.github.com/users/lishengsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishengsam/subscriptions","organizations_url":"https://api.github.com/users/lishengsam/orgs","repos_url":"https://api.github.com/users/lishengsam/repos","events_url":"https://api.github.com/users/lishengsam/events{/privacy}","received_events_url":"https://api.github.com/users/lishengsam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-02T11:45:41Z","updated_at":"2018-04-02T11:45:41Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThanks for raising a Spring Cloud issue. What sort of issue are you raising?\r\n\r\nQuestion\r\n\r\nPlease ask questions about how to use something, or to understand why something isn't\r\nworking as you expect it to, on Stack Overflow using the spring-cloud tag.\r\n\r\nBug report\r\n\r\nPlease provide details of the problem, including the version of Spring Cloud that you\r\nare using. If possible, please provide a test case or sample application that reproduces\r\nthe problem. This makes it much easier for us to diagnose the problem and to verify that\r\nwe have fixed it.\r\n\r\nEnhancement\r\n\r\nPlease start by describing the problem that you are trying to solve. There may already\r\nbe a solution, or there may be a way to solve it that you hadn't considered.\r\n-->\r\nI want to retry the request that was failed, such connection refused, read timeout, hystrix timeout.\r\nBut I set the option of serviceId.ribbon.MaxAutoRetriesNextServer=2 is not working When the GET/POST request was connection refused and read timeout\r\n\r\nMy config of zuul server as follows:\r\n1. pom.xml\r\n```\r\n  <dependencyManagement>\r\n    <dependencies>\r\n      <dependency>\r\n        <groupId>org.springframework.cloud</groupId>\r\n        <artifactId>spring-cloud-dependencies</artifactId>\r\n        <version>**Edgware.RELEASE**</version>\r\n        <type>pom</type>\r\n        <scope>import</scope>\r\n      </dependency>\r\n    </dependencies>\r\n  </dependencyManagement>\r\n\r\n<dependencies>\r\n    <dependency>\r\n      <groupId>org.springframework.cloud</groupId>\r\n      <artifactId>spring-cloud-starter-zipkin</artifactId>\r\n    </dependency>\r\n    <dependency>\r\n      <groupId>org.springframework.cloud</groupId>\r\n      <artifactId>spring-cloud-starter-eureka</artifactId>\r\n    </dependency>\r\n    <dependency>\r\n      <groupId>org.springframework.cloud</groupId>\r\n      <artifactId>spring-cloud-starter-zuul</artifactId>\r\n    </dependency>\r\n    <dependency>\r\n      <groupId>org.springframework.boot</groupId>\r\n      <artifactId>spring-boot-devtools</artifactId>\r\n      <scope>runtime</scope>\r\n    </dependency>\r\n    <dependency>\r\n      <groupId>org.springframework.retry</groupId>\r\n      <artifactId>spring-retry</artifactId>\r\n    </dependency>\r\n  </dependencies>\r\n```\r\n2. application.yaml\r\n```\r\nspring:\r\n  application:\r\n    name: zuul-server\r\n\r\nzuul:\r\n  routes:\r\n    push-token-route:\r\n      path: /token/**\r\n      serviceId : push-token\r\n      stripPrefix: false  \r\n  semaphore:\r\n    max-semaphores: 1000\r\n  ribbon:\r\n    eager-load:\r\n      enabled: true\r\n  retryable: true\r\n  ribbon-isolation-strategy: semaphore\r\n\r\nhystrix:\r\n  command:\r\n    push-token:\r\n      execution:\r\n        isolation:\r\n          strategy: SEMAPHORE\r\n          semaphore:\r\n            maxConcurrentRequests: 30\r\n          thread:\r\n            timeoutInMilliseconds: 2000\r\n\r\npush-token:\r\n  ribbon:\r\n    MaxAutoRetriesNextServer: 2\r\n    MaxAutoRetries: 0\r\n    OkToRetryOnAllOperations: true\r\n    ConnectTimeout: 100\r\n    ReadTimeout: 400\r\n\r\nmanagement:\r\n  security:\r\n    enabled: false\r\n```\r\n\r\nIs my config wrong? \r\n"}}
{"actor":{"display_login":"lishengsam"}}