ResourceExhausted desc = transaction pool connection limit exceeded | Every PlanetScale database has limit on the number of concurrent transactions it can process. This message indicates you are hitting the limit. | This can be resolved in several ways. One option is to make changes to your application code that reduce the number of long-running transactions. If this is not feasible, you can also size up your database. This can allow long-running transactions to execute quicker, and you also may get a higher concurrent transaction limit. |
primary is not serving, there is a reparent operation in progress | Your primary database server is unavailable. This often happens due to an OOM error (Out Of Memory). You also may see this on dev branches if you happen to query them during an upgrade. | In the short term, if this error message persists, we recommend you reach out to support. If this was caused by an OOM, you should see if there are changes you can make to your queries to reduce memory pressure on your database. This could mean consolidating queries or building indexes to reduce the number of pages needing to be brought into memory during query execution. If this is not possible, you will likely need to upgrade to a larger cluster size. |
vttablet: (errno 2013) due to context deadline exceeded, elapsed time: ... | Your query or transaction exceeded the default 20 second per-transaction timeout. | Consider options to reduce the time needed for the query/transaction in question to execute. Things that could help include: adding an index to speed up the query, breaking a large multi-query transaction up into multiple shorter ones. If you need some long-running transactions for analytical purposes, consider offloading those to a tool like Airbyte or Stitch. |
SQL Error [1105] [HY000]: target: platform.-.primary: vttablet: rpc error: code = Aborted desc = transaction ... (exceeded timeout: 20s) | Max transaction time exceeded. | See row above. |
vttablet: rpc error: code = Aborted desc = Row count exceeded 100000 | You have hit the 100k limit for number of rows returned, updated, or deleted in a single query. | If this is coming from a SELECT statement, consider narrowing the search or paginating results. If it is coming from an UPDATE or DELETE, consider performing updates or deletions in smaller batches. |
vttablet: rpc error: code = ResourceExhausted desc = Out of sort memory, consider increasing server sort buffer size (errno 1038) | MySQL has a buffer specifically used for sorting. This error is passed up from MySQL and indicates the buffer has been exhausted. | Buffer sizes for MySQL servers on PlanetScale come pre-configured, and we do not allow you to modify the system sort_buffer_size parameter. You may be able to get around this error by reducing the size of the result sets being sorted, adding a covering index to avoid performing a filesort during query execution, or increasing the sort buffer size for the individual sessions the query is running in. |
unavailable: vtgate connection error: no endpoints, after 1 attempts | A connection could not be made to one of your VTGates. These show up as your “load balancers” in the PlanetScale UI. | This can be caused by running queries that return very large result sets, exhausting the available memory on the load balancer. Please contact support to discuss options for mitigating this. |