I am trying to deploy Django project with Channels. After some trial and error I settled on 4 workers with 16 threads each. However as attached screen shows, the processes that are spawned by supervisor have CPU usage at ~15% while threads are around ~1-2%. Number of connections at the moment is less than 100. I tried load testing this setup, and as more messages are coming in the CPU usage is increasing both on processes that were spawned by supervisor and threads of these processes - so there is still disproportion (~50% and ~10%). Is it normal behavior? Any tips to configure it some other way to better balance the load?
--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/b566a9bc-5313-4573-9351-d6dd81915251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am trying to deploy Django project with Channels. After some trial and error I settled on 4 workers with 16 threads each. However as attached screen shows, the processes that are spawned by supervisor have CPU usage at ~15% while threads are around ~1-2%. Number of connections at the moment is less than 100. I tried load testing this setup, and as more messages are coming in the CPU usage is increasing both on processes that were spawned by supervisor and threads of these processes - so there is still disproportion (~50% and ~10%). Is it normal behavior? Any tips to configure it some other way to better balance the load?
--
Hi - I am not sure what you are saying exactly. That the load only goes to some processes? Python threads are strange, the OS may not show stats correctly and I'd generally advise multiple processes instead.Andrew
On Wed, May 17, 2017 at 1:53 AM, <biwa...@gmail.com> wrote:
I am trying to deploy Django project with Channels. After some trial and error I settled on 4 workers with 16 threads each. However as attached screen shows, the processes that are spawned by supervisor have CPU usage at ~15% while threads are around ~1-2%. Number of connections at the moment is less than 100. I tried load testing this setup, and as more messages are coming in the CPU usage is increasing both on processes that were spawned by supervisor and threads of these processes - so there is still disproportion (~50% and ~10%). Is it normal behavior? Any tips to configure it some other way to better balance the load?
--
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 django-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/b31841c7-ea17-4189-a9b8-f6f0e0d7dc79%40googlegroups.com.