Slide 20
Slide 20 text
Gotchas
• Doesn’t work well with Groovy
• Groovy can call a command, and the command can call Groovy code,
but has issues being the actual command
• Configuration syntax is awkward
• Underlying I/O calls need timeouts. I can’t stress this enough, otherwise
you’ll fill your threadpools with stuck threads until the sockets return
(which may be never). HTTP libraries should be configured to timeout
well before the Hystrix timeout (1000ms by default) hits with time for a
retry. e.x. for a call with a 1000ms Hystrix timeout and 3 retries, make
the timeout 250ms.
• Hystrix timeouts are done with thread interrupts. If the thread can’t
interrupt, it’ll exhaust your threadpool and reject work until it clears up.
Thursday, August 8, 13