-
Notifications
You must be signed in to change notification settings - Fork 232
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
[Do not merge] EDU-3626: Add docs for Nexus circuit breaker #3220
base: main
Are you sure you want to change the base?
Conversation
### Circuit Breaker {#circuit-breaker} | ||
|
||
The circuit breaker kicks in when requests fail with a [retryable error](https://github.com/temporalio/temporal/blob/13d6cd8cf7a4ba0c4660cf98f672bbd645dca3e7/components/nexusoperations/executors.go#L659) | ||
consecutively as it might indicate that the destination (eg: Nexus service to start operation, or | ||
the caller for callback request) is down or unable to process the request. The default behavior of | ||
the circuit breaker is to open after 5 consecutive failed requests. Once in open state, Nexus taskk | ||
will fail early and requests won't be sent to destination. After a minute in open state, it will | ||
change to half-open state, which will allow only 1 request to be made. If the request is successful, | ||
then the circuit breaker changes its state to closed, and allows all requests to pass through. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only change I made, all other changes was yarn build
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would defer to someone from documentation to go over the grammar and add a section on how users would find out when a destination is down. Specifically mention the BLOCKED state and maybe who what it'd look like when describing a workflow via the CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with comments.
@@ -336,7 +335,7 @@ const workerOptions = { | |||
tuner: { | |||
tunerOptions: resourceBasedTunerOptions, | |||
}, | |||
} | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. No space between brace and next comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What did you mean? Currently, there are no spaces, you want me to add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a code style nit. Feel free to ignore.
@prasek This has you listed as a reviewer. I'm going to unblock the ticket. @rodrigozhou Please let me know when you're ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technical and style issues addressed. Giving @prasek to have a pass if needed.
Unblocking.
What does this PR do?
Add docs for Nexus circuit breaker
Notes to reviewers