Skip to content
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

[Bug]: Facing deadlocks on LiteLLM #6895

Open
xyannie opened this issue Nov 25, 2024 · 2 comments
Open

[Bug]: Facing deadlocks on LiteLLM #6895

xyannie opened this issue Nov 25, 2024 · 2 comments
Labels
awaiting: user response bug Something isn't working

Comments

@xyannie
Copy link

xyannie commented Nov 25, 2024

What happened?

Version : v1.52.10

Ran some load tests which will hit litellm endpoint , observed occasionally will hit the following error

Relevant log output

ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "40P01", message: "deadlock detected", severity: "ERROR", detail: Some("Process 4199 waits for ShareLock on transaction 29865236; blocked by process 4225.
Process 4225 waits for ShareLock on transaction 29865235; blocked by process 4199."), column: None, hint: Some("See server log for query details.") }), transient: false })

Twitter / LinkedIn details

No response

@xyannie xyannie added the bug Something isn't working label Nov 25, 2024
@krrishdholakia
Copy link
Contributor

ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "40P01", message: "deadlock detected", severity: "ERROR", detail: Some("Process 4199 waits for ShareLock on transaction 29865236; blocked by process 4225.

this deadlock seems to be from the prisma client writing to the db

can you please share steps to repro?

@xyannie
Copy link
Author

xyannie commented Nov 26, 2024

I'll get back to you on litellm application side, but I conducted a load test on our GenAI models to assess the current throughput and thresholds. In our case, the workflow involves an agent invoking multiple tools (which may include additional LLM calls) to generate a final output.

Do let me know if there any additional information you need on our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting: user response bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants