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
067068f2
Unverified
Commit
067068f2
authored
Aug 10, 2025
by
Simo Lin
Committed by
GitHub
Aug 10, 2025
Browse files
[router] regular router circuit breaker (#8997)
parent
6beeff41
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sgl-router/tests/streaming_tests.rs
sgl-router/tests/streaming_tests.rs
+2
-0
sgl-router/tests/test_pd_routing.rs
sgl-router/tests/test_pd_routing.rs
+2
-0
No files found.
sgl-router/tests/streaming_tests.rs
View file @
067068f2
...
@@ -40,6 +40,8 @@ impl TestContext {
...
@@ -40,6 +40,8 @@ impl TestContext {
cors_allowed_origins
:
vec!
[],
cors_allowed_origins
:
vec!
[],
retry
:
RetryConfig
::
default
(),
retry
:
RetryConfig
::
default
(),
circuit_breaker
:
CircuitBreakerConfig
::
default
(),
circuit_breaker
:
CircuitBreakerConfig
::
default
(),
disable_retries
:
false
,
disable_circuit_breaker
:
false
,
};
};
let
mut
workers
=
Vec
::
new
();
let
mut
workers
=
Vec
::
new
();
...
...
sgl-router/tests/test_pd_routing.rs
View file @
067068f2
...
@@ -182,6 +182,8 @@ mod test_pd_routing {
...
@@ -182,6 +182,8 @@ mod test_pd_routing {
cors_allowed_origins
:
vec!
[],
cors_allowed_origins
:
vec!
[],
retry
:
RetryConfig
::
default
(),
retry
:
RetryConfig
::
default
(),
circuit_breaker
:
CircuitBreakerConfig
::
default
(),
circuit_breaker
:
CircuitBreakerConfig
::
default
(),
disable_retries
:
false
,
disable_circuit_breaker
:
false
,
};
};
// Router creation will fail due to health checks, but config should be valid
// Router creation will fail due to health checks, but config should be valid
...
...
Prev
1
2
Next
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