Multi-tenant SSO that supports OpenID and MS Azure AD

2022-11-07 Thread Tim Nelson
I am looking for a Django SSO package that supports OpenId and Azure AD with multi-tenant support. My sense is I am going to have to roll my own by forking the best of breed SSO's and adding multi-tenant support to them. Is my assessment correct? Thanks. -- You received this message because you

Hanging SyncConsumers taking down ASGI processing

2023-04-28 Thread Tim Nelson
I am chasing a database deadlock issue in my application. What appears to be happening is my SyncConsumers are eating up all the ASGI threads because they are hung and websocket connections start failing. Is there a way to add a uWSGI "harakiri" like functionality to SyncConsumers to defend agains

Channels SyncConsumers locking up Uvicorn/Websockets

2023-06-19 Thread Tim Nelson
We have had the occasional case where it appears a given SyncConsumer hangs. These seem to starve Channels of ASGI threads, eventually breaking all clients that are trying to send or connect. Is there any way to build in a timeout, meaning if a SyncConsumer doesn't finish its request in (say) 5 se

Re: Channels/Daphne offloading SSL Certs to AWS ELB fails to establish socket

2020-04-20 Thread Tim Nelson
Well if you want the clients IP logged or need to do something with it on the request: set_real_ip_from 0.0.0.0/0; real_ip_header X-Forwarded-For; real_ip_recursive on; On Mon, Apr 20, 2020 at 5:55 PM Shaheed Haque wrote: > > > On Mon, 20 Apr 2020 at 21:54, Filbert wrote: > >> *Answe

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Tim Nelson
For sure, in order to support haproxy/redis-sentinel asgi_redis would have to handle redis-py's ReadOnlyError and reopen the connection. Way above my pay grade to inject this into 1.X. It seems 2.X might suffer from the same issue as I don't see it handling this condition either. Still baffles

Getting Django Channels working with NewRelic

2023-11-17 Thread Tim Nelson
I am trying to get NewRelic monitoring my ASGI code written in Django Channels. Most notably, this line of code from their examples should create a NewRelic transaction and start monitoring all async activity. channel_layer = newrelic.agent.ASGIApplicationWrapper(get_default_application()) Ha