<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Ciao Daniele,<br>
</p>
<div class="moz-cite-prefix">Il 25/02/19 14:43, Daniele Viganò ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:CACUx=T=GOEMmj5sZZoty0dasB2Tx2AiCpfD_0=EeNJ5hmKPYWw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div>Ciao Walter,</div>
<div><br>
</div>
<div>we use 5) Nginx + spawn-fcgi (a lighttpd project) in
multiple Docker containers [0]. As a thumb rule I use one
process per Docker with number of QGIS threads equal to the
available CPU 'cores' and a number of Docker containers also
equal to the number of CPUs. It depends anyway much on the
workload (i.e. long running requests vs quick ones).<br>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
This is clear :)<br>
<blockquote type="cite"
cite="mid:CACUx=T=GOEMmj5sZZoty0dasB2Tx2AiCpfD_0=EeNJ5hmKPYWw@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div>When not using containers I would go for 3) nginx +
systemd.</div>
</div>
</div>
</blockquote>
<p>In example if you have 4 cores you create 4 qgis-server socks
file and put every soscks in a nginx upstream:</p>
<p>upstream qgis_mapserv_backend {<br>
server unix:/run/qgis-server1.sock;<br>
server unix:/run/qgis-server2.sock;<br>
server unix:/run/qgis-server3.sock;<br>
server unix:/run/qgis-server4.sock;<br>
}<br>
</p>
<p>In this way?</p>
<p>Grazie</p>
<p>W<br>
</p>
<blockquote type="cite"
cite="mid:CACUx=T=GOEMmj5sZZoty0dasB2Tx2AiCpfD_0=EeNJ5hmKPYWw@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div><br>
</div>
<div>Cheers,<br>
</div>
<div>Daniele</div>
<div><br>
</div>
<div>[0] <a
href="https://github.com/gem/oq-qgis-server#qgis-3-server-via-docker"
moz-do-not-send="true">https://github.com/gem/oq-qgis-server#qgis-3-server-via-docker</a><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 11:15
AM Walter Lorenzetti <<a href="mailto:lorenzetti@gis3w.it"
moz-do-not-send="true">lorenzetti@gis3w.it</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hi all,</p>
<p>I'm not a sysadmin but for our customers I'd like find
the better way for deploy QGIS-server 3.</p>
<p>I try at least 3 ways:</p>
<p>1) Apache2 + libapache2-mod-fcgid</p>
<p>2) Nginx + fcgiwrap</p>
<p>3) Nginx + QGIS-Server working by socket/service
(systemd)<br>
</p>
<p>By delveloper side, what do you think is the best?</p>
<p>I'd like to much 3) solution, but I found some problems,
in particular, how many sockects I've to create watching
at my server? (Number of processors )</p>
<p>For 1) and 2) have you experiences on performance and
tuning?</p>
<p>Thanks in advance and thanks for work!</p>
<p>W<br>
</p>
<div class="gmail-m_5250920444105780717moz-signature">-- <br>
<p style="font-size:12px"> Walter Lorenzetti phD<br>
email: <a
class="gmail-m_5250920444105780717moz-txt-link-abbreviated"
href="mailto:lorenzetti@gis3w.it" target="_blank"
moz-do-not-send="true">lorenzetti@gis3w.it</a><br>
skype: aiki74<br>
twitter:<a href="https://twitter.com/w_lorenzetti"
target="_blank" moz-do-not-send="true">w_lorenzetti</a><br>
g+:<a
href="https://plus.google.com/117055903318462447104/"
target="_blank" moz-do-not-send="true">aiki74</a><br>
Tel/Cell: (+39) 347-6597931<br>
Viale Verdi 24 - 51016 Montecatini Terme (PT) <br>
<a
href="http://gis3w.it/it/calendario-corsi-software-geografici"
target="_blank" moz-do-not-send="true">Nuovi corsi
QGIS e GFOSS</a> </p>
</div>
</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org"
target="_blank" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="gmail_signature"><b><span
style="color:rgb(153,153,153)">Daniele Viganò</span></b><br
style="color:rgb(153,153,153)">
<a style="color:rgb(51,51,255)" href="http://daniele.vigano.me"
target="_blank" moz-do-not-send="true">http://daniele.vigano.me</a></div>
</blockquote>
<div class="moz-signature">-- <br>
<p style="font-size:12px;">
Walter Lorenzetti phD<br>
email: <a class="moz-txt-link-abbreviated" href="mailto:lorenzetti@gis3w.it">lorenzetti@gis3w.it</a><br>
skype: aiki74<br>
twitter:<a href="https://twitter.com/w_lorenzetti">w_lorenzetti</a><br>
g+:<a href="https://plus.google.com/117055903318462447104/">aiki74</a><br>
Tel/Cell: (+39) 347-6597931<br>
Viale Verdi 24 - 51016 Montecatini Terme (PT)
<br>
<a
href="http://gis3w.it/it/calendario-corsi-software-geografici">Nuovi
corsi QGIS e GFOSS</a>
</p>
</div>
</body>
</html>