<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Jake,
<div class=""><br class="">
</div>
<div class="">Could you give us more details what is exactly not working? Did you try gevent as well?</div>
<div class="">Which OS, Python, Django, gunicorn, gevent/eventlet?</div>
<div class=""><br class="">
</div>
<div class="">Please provide us with 'ps aux | grep django.pid' output and matching log files showing failure.</div>
<div class="">Ideally if you run gunicorn in debug mode to give more accurate details.</div>
<div class=""><br class="">
<div class="">
<div apple-content-edited="true" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="Apple-interchange-newline">
Ola</div>
<div apple-content-edited="true" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Software Engineer</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Open Microscopy Environment</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
University of Dundee</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 22 Jan 2016, at 10:44, Jake Carroll <<a href="mailto:jake.carroll@uq.edu.au" class="">jake.carroll@uq.edu.au</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi again,<br class="">
<br class="">
<br class="">
<br class="">
It looks like the suggestions below do not solve the problem. I have tried with many different combinations of the eventlet string and nothing would appear to fix the issue.<br class="">
<br class="">
Do you have any other suggestions? <br class="">
<br class="">
Thanks!<br class="">
<br class="">
-jc<br class="">
<br class="">
<br class="">
<br class="">
<blockquote type="cite" class=""><br class="">
<br class="">
Today’ Topics:<br class="">
<br class="">
1. Format for arguments for OMERO model objects (Paul Kibet Korir)<br class="">
2. Re: Problem with omero *downloads* from web<br class="">
<br class="">
Message: 2<br class="">
Date: Thu, 14 Jan 2016 13:38:48 +0000<br class="">
From: "Aleksandra Tarkowska (Staff)" <<a href="mailto:A.Tarkowska@dundee.ac.uk" class="">A.Tarkowska@dundee.ac.uk</a>><br class="">
To: OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a>><br class="">
Subject: Re: [ome-users] Problem with omero *downloads* from web<br class="">
Message-ID: <<a href="mailto:BD2B5F53-7A4B-4960-9E15-F816321F3895@dundee.ac.uk" class="">BD2B5F53-7A4B-4960-9E15-F816321F3895@dundee.ac.uk</a>><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Hi Jace and Dave<br class="">
<br class="">
Sorry for a slow response.<br class="">
<br class="">
Thanks again for reporting download issue. Failing download is not related to the size of 1GB but Gunicorn worker timeout 30 sec. Your nginx log should show error that upstream prematurely closed connection while reading...<br class="">
<br class="">
and gunicorn log will say: [CRITICAL] WORKER TIMEOUT (pid:2701)<br class="">
<br class="">
You can test it by starting web with custom timeout <a href="http://docs.gunicorn.org/en/stable/settings.html#timeout" class="">
http://docs.gunicorn.org/en/stable/settings.html#timeout</a><br class="">
bin/omero web start --wsgi-args ' -t 5 --error-logfile=/home/omero/omero_dir/var/log/g_error.log '<br class="">
<br class="">
<br class="">
By default OMERO.web runs with gunicorn 5 sync workers with single thread and default timeout 30 sec. Sync workers are preferred for applications that perform complex calculations and async for one that bound (I/O). So you basically need to decide your users
will use web for.<br class="">
<br class="">
You can resolve this problem in two ways depends on download activity and scale by choosing appropriate parameters:<br class="">
<br class="">
1. async workers:<br class="">
<br class="">
$ pip install (gevent|eventlet)<br class="">
$ bin/omero web start ?-workers INT --wsgi-args ' ?-worker-class (gevent|eventlet) '<br class="">
<br class="">
<br class="">
2. sync workers with multiple threads (this option is available since gunicorn 19):<br class="">
(this is less fabulous as request will take up CPU core once is waiting)<br class="">
<br class="">
$ bin/omero web start ?-workers INT --wsgi-args ? --timeout INT --threads INT '<br class="">
depends on python version you may have to pip install futures<br class="">
<br class="">
<br class="">
For more details how to calculate number of workers, threads, etc please refer to the documentation
<a href="http://docs.gunicorn.org/en/stable/settings.html" class="">http://docs.gunicorn.org/en/stable/settings.html</a><br class="">
<br class="">
You can also run benchmarks tool such as weighttp or Apache ab and do e.g 1000 requests with 100 parallel requests, changing between different kind of workers and see what happens performance-wise.<br class="">
<br class="">
We will definitely update our documentation to make it clear.<br class="">
<br class="">
<br class="">
Ola<br class="">
Software Engineer<br class="">
Open Microscopy Environment<br class="">
University of Dundee<br class="">
</blockquote>
_______________________________________________<br class="">
ome-users mailing list<br class="">
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a><br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>