Skip to content

Commit

Permalink
Refined total connections
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Nov 22, 2024
1 parent 24b9af0 commit 9a0c290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zenml/zen_server/routers/server_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def server_load_info(_: AuthContext = Security(authorize)) -> ServerLoadInfo:
idle_conn = pool.checkedin()
active_conn = pool.checkedout()
overflow_conn = max(0, pool.overflow())
total_conn = pool.overflow() + pool.size() + idle_conn
total_conn = idle_conn + active_conn

return ServerLoadInfo(
threads=num_threads,
Expand Down

0 comments on commit 9a0c290

Please sign in to comment.