
After our production release we have a problem handling big traffic logs from appwrite container:
TypeScript
[Error] Timestamp: 2023-10-10T08:04:18+00:00
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
[Error] Type: PDOException
[Error] Message: SQLSTATE[HY000] [1040] Too many connections
[Error] File: /usr/src/code/app/init.php
[Error] Line: 700
[Error] Timestamp: 2023-10-10T08:04:19+00:00
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
[Error] Type: PDOException
[Error] Message: SQLSTATE[HY000] [1040] Too many connections
[Error] File: /usr/src/code/app/init.php
[Error] Line: 700
[Error] Timestamp: 2023-10-10T08:04:19+00:00
TL;DR
The support thread discusses an error message: "SQLSTATE[HY000] [1040] Too many connections" that occurs when handling big traffic logs from the Appwrite container. The user considers passing the variables through compose variables or adding them to the .env file. They also mention four variables to try fiddling around with: _APP_CONNECTIONS_MAX, _APP_POOL_CLIENTS, _APP_SERVER_MULTIPROCESS, and _APP_WORKER_PER_CORE, with a corresponding GitHub link. Unfortunately, no solution is provided in the thread.
You can try fiddling around with:
- _APP_CONNECTIONS_MAX
- _APP_POOL_CLIENTS
- _APP_SERVER_MULTIPROCESS
- _APP_WORKER_PER_CORE

these are not present in documentation - should I just put them into .env file?

nvm just pass them through compose variables
Recommended threads
- Hello all, does anyone know if it is po...
I'm looking for information on how to migrate to here from Mocha, while retaining my ties with stripe and react. Any Ideas ?
- Relationship performance between collect...
Say I have a collection of "teachers" and "students" where a teacher has a relationship-attribute to asign multiple students to one teacher. When I fetch data...
- Getting CORS error for GraphQL query on ...
Getting CORS error when making GraphQL queries using Appwrite's SDK in Next.js (client-side). Login/signup works fine. Only GraphQL is failing on both localhost...
