<p dir="ltr">Sorry, I haven't provided any update. Had some competing priorities.</p>
<p dir="ltr">Just using 1 user for instances (python) and gunicorn should simplify things in the long run, but the migration will be complex, especially migrating OS groups that share files between uwsgi, instances, nginx, etc.</p>
<p dir="ltr">Hope to get to this before FOSS4G, but not sure.</p>
<p dir="ltr">Regards,<br>
Patrick</p>
<div class="gmail_extra"><br><div class="gmail_quote">On May 31, 2016 12:58 PM, "Patrick Dufour" <<a href="mailto:pjdufour.dev@gmail.com">pjdufour.dev@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Ok, good to hear! That's great info.</p>
<p dir="ltr">Yeah, forgot to mention that the cluster I'm thinking about migrating is a group of GeoNodes/GeoServers all on 1 CentOS machine sharing 1 nginx. Easy enough to add memcached to supervisor.</p>
<p dir="ltr">I'll give it a shot then. Thanks.</p>
<p dir="ltr">Patrick</p>
<div class="gmail_quote">On May 31, 2016 6:40 PM, "Daniel Berry" <<a href="mailto:dberry@boundlessgeo.com" target="_blank">dberry@boundlessgeo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Patrick,<div><br></div><div>I have setup supervisor + gunicorn + tomcat in a centos instance. I have seen some delays, but I am in the process of including memcached... hopefully that will help. Apache is being used as the reverse proxy for gunicorn(HTTP:8000) and tomcat (AJP:8009). </div><div><br></div><div>You could also have uwsgi running as a subprocess under supervisord. GeoSHAPE uses supervisord for celery and uwsgi processes. </div><div><a href="https://github.com/ROGUE-JCTD/rpmbuild/blob/master/SOURCES/supervisord.conf" target="_blank">https://github.com/ROGUE-JCTD/rpmbuild/blob/master/SOURCES/supervisord.conf</a><br></div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 10:54 AM, Patrick Dufour <span dir="ltr"><<a href="mailto:pjdufour.dev@gmail.com" target="_blank">pjdufour.dev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">All,</p>
<p dir="ltr">Has anyone used supervisor and gunicorn for a GeoNode instance or a cluster of instances before?</p>
<p dir="ltr">An instance I help manage currently uses system managed uwsgi/GeoNode and tomcat/GeoServer processes.</p>
<p dir="ltr">I was thinking of switching to supervisor to manage the gunicorn and tomcat processes, so the configuration could be managed in a supervisord.conf file and supervisorctl at the project roots instead of config spread across system /etc files. Supervisor can also be accessed through a python virtual environment rather than system python. I think it might help with maintainability.</p>
<p dir="ltr">I saw some online blog posts saying Gunicorn is slow, but is the performance speed so bad it negates benefits of visibility.</p>
<p dir="ltr">Relevant lessons learned would be appreciated.</p>
<p dir="ltr">Thanks very much.</p><span><font color="#888888">
<p dir="ltr">Patrick</p>
</font></span><br>_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><b><font face="tahoma, sans-serif">Daniel Berry</font></b></div><div><span style="font-family:tahoma,sans-serif;font-size:small">Senior Software Engineer</span><font face="tahoma, sans-serif"> | Boundless</font></div><div><a href="mailto:dberry@boundlessgeo.com" target="_blank"><font face="tahoma, sans-serif">dberry<font color="#1155cc">@boundlessgeo.com</font></font></a></div><div><font face="tahoma, sans-serif"><a href="tel:512-468-3946" value="+15124683946" target="_blank">512-468-3946</a> (cell)</font></div><div><font face="tahoma, sans-serif">@boundlessgeo</font></div><div><br style="font-size:12.8px"><img src="https://docs.google.com/a/boundlessgeo.com/uc?id=0B_qVH4CJ8mXOa3E1YUNySzN2d00&export=download" style="font-size:12.8px"><br></div></div></div></div></div></div>
</div>
</blockquote></div>
</blockquote></div></div>