Rank 2: Process
For some reason my self-hosted instance of Appwrite periodically slows down so much and becomes unresponsive (console, APIs, everything). I keep restarting the docker containers to fix it temporarily but I have been unable to diagnose or find a solution for this. The CPU or RAM usage is not anything out of the ordinary (less than 9% of CPU usage and about 2-3GB of RAM usage).
As for the logs, the only ones I have noticed are these
appwrite | Internal curl error has occurred within the executor! Error Number: 28
appwrite | swoole_dispatch: Risky branch: did not find a idle worker, picking random worker 9
appwrite | swoole_dispatch: Risky branch: did not find a idle worker, picking random worker 9
appwrite | swoole_dispatch: Risky branch: did not find a idle worker, picking random worker 10
appwrite | swoole_dispatch: Risky branch: did not find a idle worker, picking random worker 11
appwrite | swoole_dispatch: Risky branch: did not find a idle worker, picking random worker 11
Sometimes I will get this:
appwrite | Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds.
What do you think is the cause behind this issue? Do I need to upgrade my server? There are some functions which act as endpoints and are very frequently called, but I only recently ran into this issue and those functions have been around for months.