T
Twenty3mo ago
justoc

Encountering latencies when having more than 50 workspace members

Need help
6 Replies
Prastoin
Prastoin3mo ago
Hello, please provide more information regarding your issue Are you self hosting ? If yes what version What's slow exactly etc
justoc
justocOP3mo ago
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?
Prastoin
Prastoin3mo ago
What do you mean by users ? Workspace members or people records ? What crashes a lot, the server or the client ? Please elaborate
justoc
justocOP3mo ago
workspace members When there are 50 users at the same time, everything becomes slow, crashing and giving errors.
Prastoin
Prastoin3mo ago
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
justoc
justocOP3mo ago
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.

Did you find this page helpful?