Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
642fa966
Unverified
Commit
642fa966
authored
Oct 14, 2025
by
Wenyi Xu
Committed by
GitHub
Oct 14, 2025
Browse files
[Docs] [Router]: Update sg-router doc on circuit breaker (#11449)
parent
da7fac1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
docs/advanced_features/router.md
docs/advanced_features/router.md
+19
-0
No files found.
docs/advanced_features/router.md
View file @
642fa966
...
...
@@ -225,6 +225,25 @@ python -m sglang_router.launch_router \
--cb-window-duration-secs
60
```
```
mermaid
flowchart TD
Closed(["Closed"])
Open(["Open"])
HalfOpen(["HalfOpen"])
Closed -- "Consecutive Failures >=<br/>cb-failure-threshold" --> Open;
Closed --> HalfOpen;
linkStyle 1 stroke:transparent;
Open -- "After cb-timeout-duration-secs" --> HalfOpen;
HalfOpen -- "Fail any test request" --> Open;
HalfOpen -- "After cb-success-threshold<br/>test requests" --> Closed;
Closed -- "Failures < cb-failure-threshold" --> Closed;
style Closed fill:#00C853,color:#000000
style Open fill:#D50000,color:#000000
style HalfOpen fill:#FFD600,color:#000000
linkStyle 1 stroke:transparent,fill:none
```
**Behavior**
:
-
Worker is marked unhealthy after
`cb-failure-threshold`
consecutive failures
-
Returns to service after
`cb-success-threshold`
successful health checks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment