6 Replies
Hello, please provide more information regarding your issue
Are you self hosting ? If yes what version
What's slow exactly etc
I use 1.0.3 in docker, using railway, but when I put 50 users at the same time it crashes a lot... how can I improve this?
What do you mean by users ? Workspace members or people records ?
What crashes a lot, the server or the client ?
Please elaborate
workspace members
When there are 50 users at the same time, everything becomes slow, crashing and giving errors.
Ok interesting !
Could you please precise what's crashing and on how exactly ? Sharing a video for example
You might need more RAM on your machine hosting the twenty-server and twenty-worker
giving errors.Please share the errors
I used hosting via Raiweyl with Dockers from Twenty, and even with 32GB of RAM available, it used about 2 and kept crashing. I've now put a solution in place: I increased the number of processes using WEB_CONCURRENCY in Twenty, I went up to 2, that is, now it starts 2 separate server processes. Number of threads per process (RAILS_MAX_THREADS), I set to 10, so in this case each process can handle 10 requests simultaneously, totaling 20 in total since there are 2 processes. Number of simultaneous connections to the database per application instance (DB_POOL) I set to 10, so 10 connections to the database can be maintained at the same time per process.