We have executed cluster of 3 docker containers (on separated machines) with daphne and workers --threads=4 in each container. And this container consube about 15% machine's CPU after start. Then it start consume addtional 4-5% of CPU per new connection and seems like not free this resources when user is disconnected (we've removing channels from groups on WS disconnection)…
I've decreased amount of worker threads to 1 and now container get 3-5% of CPU after start and 1-2% per new user. Looks like now it started to free CPU after user disconnection when get about 10% of CPU. Also we use asgi_redis.RedisLocalChannelLayer with 3 redis instnaces (one per machine). I not sure if it's correct behaviour ot it's my fault somwhere? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/964cb488-a5d9-4f6c-890f-3c4dec4d2ec4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

