Closed rawezhcode closed 19 hours ago
Hello @rawezhcode
Can be caused by k6 generator - it may be too slow, and does not processing messages fast enough. In general, no hard limit on Centrifugo side which can cause such behaviour. Pay attention to resource usage on generator and server side. We have customers with 100k, 50k clients per one Centrifugo node.
After some testing, I used the K6, and the problem was with the K6, not the Centrifugo.
But theoretically, how much can this VPS withstand?
my VPS:
4 core 10Gb Ram 100Gb nvme
It is always hard to say.. For 10GB RAM the main limiting factor will be CPU most probably (if history is not used, though need to also estimate presence overhead here), the usage depends on load profile, so it's hard for me to estimate. Load testing should give answers, it's a bit difficult to make for WebSocket properly unfortunately as you can see. I believe that sth like 100k connections should be possible on Linux if we consider a workload of abstract messenger application. I am making assumptions on the numbers based on real-life numbers achieved in the real experiment - https://centrifugal.dev/blog/2020/02/10/million-connections-with-centrifugo
benchmark.js File
config.json
centridugo.service
my VPS:
4 core 10Gb Ram 100Gb nvme