question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing values in calculation of Zuul Hystrix Timeouts

See original GitHub issue

After reading the merged PR #2633 I have some questions.

1/ Is it normal to not multiply Ribbon connect and read timeouts by MaxAutoRetries and MaxAutoRetriesNextServer (if they are set in configuration file) ?

Or maybe the hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds is for each request, independently of the number of retries ?

2/ For specific commandKey (service ?), if we have specific Ribbon connect and read timeouts, I think we are ignoring them and setting the default Ribbon properties instead.

Exemple : I have a service named sample-client and the given configuration :

No hystrix.command.sample-client.execution.isolation.thread.timeoutInMilliseconds

sample-client.ribbon.ReadTimeout=3000

sample-client.ribbon.ConnectTimeout=3000

ribbon.ReadTimeout=2000

ribbon.ConnectTimeout=2000

By default, the hystrix timeout for ma sample-client will be 6000ms and not 4000ms ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
holy12345commented, Jan 14, 2018

@rphlmr Thank you very much for the diagram, I think he will help everyone who wants to know about this issue. Although it is 1 am Beijing time, but I did not drowse, I think I will fix this issue. Thanks again :)

0reactions
holy12345commented, Jan 15, 2018

@rphlmr Yes, you’re right. I forgot to say, but in the code I’ve followed the right way

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hystrix Readed time out status 504 on first zuul call
I am always getting the "Hystrix Readed time out" error message for first ever call to zuul. I am using "Greenwich.
Read more >
9. Router and Filter: Zuul - Spring Cloud
The Hystrix timeout needs to take into account the Ribbon read and connect timeout PLUS the total number of retries that will happen...
Read more >
Timeouts and Retries In Spring Cloud Gateway
The factor is 2 what means that the backoff is calculated by using formula prevBackoff * factor . A formula is becoming slightly...
Read more >
Hystrix Readed time out status 504 on first zuul call-Springboot
According to the documentation, you need to use some properties. I tried this and works to me: zuul.host.socket-timeout-millis=20000 ...
Read more >
A New Era Of Spring Cloud - DZone Microservices
Currently, they are starting work on Ilford Release Train, which is removing such popular projects like Ribbon, Hystrix, or Zuul from Spring ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found