HW performance with 1 user sending message every 100ms: https://i.imgur.com/5F4mKAI.png
Yesterday i tried to use it in production and when there were 15 clients connected (each one pinging server every 2 seconds) nobody else could connect.
I have default settings and I followed Getting started tutorial.
--
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/d86b1eb9-3492-48bc-9460-365571585db5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tJV-dX26xobzahdy1H3WA054WhSfc3Nyb5HvRenmMbbbw%40mail.gmail.com.
Python threads are not that great at sharing I/O - I'd recommend you run at most one or two per physical CPU core in your machine. 500 is just going to suffocate Python in context switching.We have loadtests that definitely got above 10 messages a second - what ASGI backend are you using? What size messages are you sending? Have you tried running workers in separate processes?Andrew
On Sun, Mar 5, 2017 at 5:26 AM, Avraham Serour <tov...@gmail.com> wrote:
I don't think you need 500 workers, the number of workers depends on how long will message will take to be processed not the number of concurrent connections.The worker job is to get a message and send to a bunch of clients, the ASGI server, meaning the process actually holding the websocket, in your case daphne, will actually upload the data.Is the client and server running on the same computer?Don't stress test your server manually, you should write a script to do it.
On Sun, Mar 5, 2017 at 1:28 PM, Lada B <lada...@gmail.com> wrote:
HW performance with 1 user sending message every 100ms: https://i.imgur.com/5F4mKAI.png
Yesterday i tried to use it in production and when there were 15 clients connected (each one pinging server every 2 seconds) nobody else could connect.
I have default settings and I followed Getting started tutorial.
--
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 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/d86b1eb9-3492-48bc-9460-365571585db5%40googlegroups.com.
--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
I just tried to run workers in separate processes and it works great! it's awesome and it fails only because of redis channel memory being full. Dont know how to increase it tho.
--
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/f5ca762c-b028-4445-827d-6746f02cd44c%40googlegroups.com.