I'm seeing some 429 errors on Vercel (serverless concurrency limits exceeded). I'm using…
- User
I'm seeing some 429 errors on Vercel (serverless concurrency limits exceeded). I'm using serverless functions, not edge functions. My database is Planetscale. What error should I look for in Planetscale to confirm?
Assistant
If you're getting 429 errors in Vercel, it means that you've exceeded the allowed concurrency for your plan. I'm not sure what the exact error message would be in Planetscale, but you should look for something about "resource pool timed out".
- User
What does this error message mean?
target: sharegpt.-.primary: vttablet: rpc error: code = ResourceExhausted desc = resource pool timed out
Assistant
It means that your database connection pool timed out. This usually happens when your database connection is in use for too long, and the database server needs to release the connection back into the connection pool so it can be reused.
- User
What does this mean?
target: sharegpt.-.primary: vttablet: rpc error: code = Canceled desc = context canceled
Assistant
This is an error message from the database. It means that a query was canceled because the query context (the environment in which the query is being executed) was canceled. This usually happens when a query is canceled because the query was idle for too long, and the database needs to free up the resources that the query was using.
- User
This one?
target: sharegpt.-.primary: vttablet: rpc error: code = Canceled desc = (errno 2013) due to context deadline exceeded, elapsed time: , killing query ID
Assistant
This is an error message from the database. It means that a query was canceled because it exceeded the timeout that was set for it. It sounds like the query was running for a really long time, and the timeout was reached, so the query was automatically canceled. It's hard to say exactly why the query took so long to run, but it might have been a query that was attempting to do a really large computation.
- User
There are two kinds of problem I'm facing: function timeouts, and function concurrency limits. Which of these errors are more likely to be caused by excess load rather than excess query time
Assistant
I'm not sure what you mean by "excess load" and "excess query time". Do you mean that you're getting too many requests, or that your queries are taking too long to run?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.