Resolving `circuit breaker is open` Error with Go in TS Cloud

TLDR Morgan was seeking help for a Go error message when upserting in TS cloud. Jason suggested increasing the client side timeout and left the circuit breaker timeout unchanged.

Photo of Morgan
Morgan
Mon, 29 Nov 2021 22:52:44 UTC

Hi we got this error with GO when upserting a document to TS cloud. `circuit breaker is open`. can anyone give more context on that?

Photo of Jason
Jason
Mon, 29 Nov 2021 22:55:57 UTC

Morgan This looks like due to too many failed or incomplete requests:

Photo of Jason
Jason
Mon, 29 Nov 2021 22:56:33 UTC

Could you try increasing the client side timeout, to make sure the batch import call has sufficient time to complete

Photo of Morgan
Morgan
Mon, 29 Nov 2021 23:11:51 UTC

Thanks Jason, that was very helpful. So the likely reason is the request sent to TS server was closed before it can respond, correct? that way, by increasing client side timeout, you mean ?

Photo of Jason
Jason
Mon, 29 Nov 2021 23:12:53 UTC

Yup, that's correct

Photo of Morgan
Morgan
Mon, 29 Nov 2021 23:13:33 UTC

Great, thanks. Do you think I should also increase ?

Photo of Jason
Jason
Mon, 29 Nov 2021 23:33:58 UTC

It looks like that might control the time between retries... Ideally we want the very first request to succeed and not timeout. So I'd leave circuit breaker timeout as is.