> On 12 Apr 2016, at 3:13 AM, Ola <[email protected]> wrote:
> 
> Hi Graham
> 
> I was wondering if you could share more details about what is exactly causing 
> the "hanging issue with some third party C extension modules for Python" 
> describe above. I am facing strange behavior with django app deployed on 
> gunicorn with gevent async workers based on greenlets where they seems to be 
> blocked by Ice Python biding. I know that this is not apache and mod_wsgi 
> problem but underlying problem may stay in Ice itself.


You issue is totally unrelated.

The problem you are having is likely caused by the Ice Python binding not being 
greenlet aware or not using Python interfaces from standard library which are 
being patched by gevent to be greenlet aware.

This is why gevent/eventlet async systems in gunicorn are so dangerous.

Many think that it is a simple matter of enabling the async workers in gunicorn 
and it provides them a magical fix. It doesn’t and use of any Python package 
which does external call outs which isn’t greenlet aware, will cause the whole 
process to block and not just the greenlet that is running.

No one should use the async workers in gunicorn unless they understand these 
issues and are confident they aren’t using Python packages which will result in 
blocked calls. If you use it without understanding the risks, you likely will 
end up in quite a worse situation and worse performance.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to