I forgot to mention supervisor is my process manager.

On Monday, December 16, 2019 at 12:08:55 PM UTC+8, Vaisagh Viswanathan 
wrote:
>
> Hi,
>
> We recently changed to django 2.x and channels. 2.2 from a system that has 
> been running relatively stable on channels 1.x for almost 3 years now. Our 
> tests did not show any issues when we were running django channels in our 
> test servers. And even when we tried load testing with frequent requests, 
> the errors were not unexpected i.e. there would be conenctions dropped and 
> a few 502s.  ANd as soon as the load was cut off things would work fine. 
>
> This changed drastically when we deployed it in our prod environment. Our 
> daphne process SIGKILLS every few minutes and as a result our websockets 
> connections are extremely unstable and requires frequent reconnects. Our 
> setup is such that we have an AWS ALB sitting in front of NGINX that 
> directs all non-websockets traffic to a gunicorn process (which is pretty 
> stable) and all websockets traffic to a daphne process. 
>
> We tried Uvicorn in the middle as well, howeer Uvicorn wouldn't sigkill 
> itself but it was just as unresponsive. 
>
> Our ELB logs show a steady stream of 502 errors. 
>
> We have been dealing with these issues for around 2 days now and are 
> completely lost. If you coud give some advice on where we should be looking 
> at. What could be causing SIGKILLS, that would be seriously awesome. 
>
> Regards,
> Vaisagh
>
>
> *This message contains confidential information and is intended only for 
> the individual named. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and 
> delete this e-mail from your system. E-mail transmission cannot be 
> guaranteed to be secure or error-free as information could be intercepted, 
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 
> The sender therefore does not accept liability for any errors or omissions 
> in the contents of this message, which arise as a result of e-mail 
> transmission. "impress.ai <http://impress.ai>" and "Impress" are brands of 
> Ideatory Pte. Ltd., #08-01, 80 Robinson Road, Singapore - 068898, 
> https://impress.ai <https://impress.ai>.*
>

-- 
_This message contains confidential information and is intended only for 
the individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 
The sender therefore does not accept liability for any errors or omissions 
in the contents of this message, which arise as a result of e-mail 
transmission. "impress.ai <http://impress.ai>" and "Impress" are brands of 
Ideatory Pte. Ltd., #08-01, 80 Robinson Road, Singapore - 068898, 
https://impress.ai <https://impress.ai>._

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8b5653b4-c756-4e25-a3f0-fa5caeaca856%40googlegroups.com.

Reply via email to