Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hystrix http client - Unit missing in configuration #143

Open
aaditya-khetan opened this issue Jul 24, 2024 · 1 comment
Open

Hystrix http client - Unit missing in configuration #143

aaditya-khetan opened this issue Jul 24, 2024 · 1 comment

Comments

@aaditya-khetan
Copy link

  • The hystrix client uses SleepWindow config in integer instead of time.Duration field - https://github.com/gojek/heimdall/blob/master/hystrix/hystrix_client.go#L29
  • This leads to confusion whether this value is expected in seconds or milliseconds.
  • Moreover, there is no documentation mentioning the expected unit either in readme or in code comments which leds to a lot of back and forth in integrating and successfully testing the CB configs.
@lyn1505
Copy link

lyn1505 commented Jul 29, 2024

I'm having the same confusion. If I'm correct, there's an inconsistent here: Heimdall interprets SleepWindow as in seconds, while afex/hystrix-go, the circuit breaker Heimdall is using, interprets it in milliseconds.

Default value is 10 in Heimdall: https://github.com/gojek/heimdall/blob/master/hystrix/hystrix_client.go#L43
Default value is 5000 (5 sec) in afex/hystrix-go: https://github.com/afex/hystrix-go/blob/master/hystrix/settings.go#L16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants