High CPU usage in Kubernetes when using Teams #7514
Replies: 3 comments 3 replies
-
|
This issue might be related to lingering sessions or resources not being cleaned up properly after Team execution. Ensure that session cleanup is properly configured in your FastAPI backend: from fastapi import FastAPI, Request
app = FastAPI()
@app.middleware("http")
async def cleanup_middleware(request: Request, call_next):
response = await call_next(request)
# Perform necessary cleanup here
# Example: Close connections, clear caches, etc.
return responseThe middleware ensures cleanup operations run after each request, helping manage resource usage. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mbmallinath , did this solve ur issue ?, what version of Agno were you on |
Beta Was this translation helpful? Give feedback.
-
|
Hi Agno Team and Community, @pandego , @mbmallinath , @omni-front , @kausmeows can anyone help I am deploying a complex multi-agent system in production on Kubernetes, and I am experiencing severe CPU spikes and sustained high resource utilization across my pods. 🛠️ Our Architecture Stack:Orchestration Layer: AgentOS using multi-agent TeamsFrontend/Streaming: Connected via the agui completely powered via MCP ServersConfiguration: refresh_connection=True is enabled to ensure tools are dynamically synced ad to sustain frequest onnection drops (which i took as seen in the #7073 , #7810) So how many cpu should be allocated and mem usage we should be expecting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
High CPU usage in Kubernetes when using Teams
Hi Team,
We are seeing high CPU utilization in Kubernetes pods when using the Team feature.
Is there any configuration or parameter we might be missing for proper cleanup after Team execution? Or is this a known issue?
Happy to share more details if needed.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions