Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
UTC+1 Andrew Godwin napsal(a): > > So you are starting a steam client from a consumer inside a worker process > then? Inside a consumer, send() calls will not finish until you return > control from the consumer, so maybe that's it? > > On Tue, Mar 7, 2017 at 10:39 AM, Lada B

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
Presumably not a webserver > process, as that doesn't have a main thread. Could you explain a bit more > about the architecture and what channel layers you have configured? > > Andrew > > On Tue, Mar 7, 2017 at 4:06 AM, Lada B > > wrote: > >> I'm

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
e úterý 7. března 2017 19:08:39 UTC+1 Andrew Godwin napsal(a): > > Where are you running this steam client from? Presumably not a webserver > process, as that doesn't have a main thread. Could you explain a bit more > about the architecture and what channel layers you have configured? >

Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I'm using https://github.com/ValvePython/steam https://github.com/django/channels and I'm trying to make them work together. Problem is that when SteamClient starts I cannot send any message with channels. Group(group_name).send({ 'text': json.dumps({ 'match_status': "balancing tea

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
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 f

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
Also i havent tried running workers in separate processes Is the client and server running on the same computer? No And i just realized that expiry=5 is wrong because it disconnects users. Thats why it feels "better" now :D -- You received this message because you are subscribed to the Google

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
ients, 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

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
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 star

Channels - slow with limited number of connections

2017-03-05 Thread Lada B
Hi, im using django-1.10 + channels + asgi_redis + daphne + uwsgi + nginx but i have problem with workers+daphne being slow. Im developing chat and I tried how fast its by holding ENTER button (spamming messages one after one and it doesn't even respond until i stop sending messages. When i t