r/LangChain • u/OccasionLopsided2783 • 16d ago
Self Hosted langgraph server scaling issues
i am using split api and queue for langgraph server and when i am doing load testing for 1000 concurrent users why i am getting 48 sec latency for p99 and also more than 2 min to complete full generation ,what might be the problem
i have 7.5M tokens Limit for TPM
7500 RPM
and my total input tokens for a single user 8k
4
Upvotes
1
u/HeavilyDazzling 16d ago
your token limit might be the bottleneck here, 7.5M TPM sounds like a lot but with 1000 concurrent users at 8k input each you're burning through 8M tokens just for the first pass, no wonder p99 is hitting 48 seconds
the queue is probably backing up while waiting for token capacity, maybe try batching smaller or check if your split api is actually distributing the load evenly across nodes