[QGIS-Developer] QGIS server deployment

Walter Lorenzetti lorenzetti at gis3w.it
Tue Feb 26 00:19:36 PST 2019


Ciao Daniele,

Il 25/02/19 14:43, Daniele Viganò ha scritto:
> Ciao Walter,
>
> 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).
>
This is clear :)
> When not using containers I would go for 3) nginx + systemd.

In example if you have 4 cores you create 4 qgis-server socks file and 
put every soscks in a nginx upstream:

upstream qgis_mapserv_backend {
         server unix:/run/qgis-server1.sock;
         server unix:/run/qgis-server2.sock;
         server unix:/run/qgis-server3.sock;
         server unix:/run/qgis-server4.sock;
}

In this way?

Grazie

W

>
> Cheers,
> Daniele
>
> [0] https://github.com/gem/oq-qgis-server#qgis-3-server-via-docker
>
> On Mon, Feb 25, 2019 at 11:15 AM Walter Lorenzetti 
> <lorenzetti at gis3w.it <mailto:lorenzetti at gis3w.it>> wrote:
>
>     Hi all,
>
>     I'm not a sysadmin but for our customers I'd like find the better
>     way for deploy QGIS-server 3.
>
>     I try at least 3 ways:
>
>     1) Apache2 + libapache2-mod-fcgid
>
>     2) Nginx + fcgiwrap
>
>     3) Nginx + QGIS-Server working by socket/service (systemd)
>
>     By delveloper side, what do you think is the best?
>
>     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 )
>
>     For 1) and 2) have you experiences on performance and tuning?
>
>     Thanks in advance and thanks for work!
>
>     W
>
>     -- 
>
>     Walter Lorenzetti phD
>     email: lorenzetti at gis3w.it <mailto:lorenzetti at gis3w.it>
>     skype: aiki74
>     twitter:w_lorenzetti <https://twitter.com/w_lorenzetti>
>     g+:aiki74 <https://plus.google.com/117055903318462447104/>
>     Tel/Cell: (+39) 347-6597931
>     Viale Verdi 24 - 51016 Montecatini Terme (PT)
>     Nuovi corsi QGIS e GFOSS
>     <http://gis3w.it/it/calendario-corsi-software-geografici>
>
>     _______________________________________________
>     QGIS-Developer mailing list
>     QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> -- 
> *Daniele Viganò*
> http://daniele.vigano.me
-- 

Walter Lorenzetti phD
email: lorenzetti at gis3w.it
skype: aiki74
twitter:w_lorenzetti <https://twitter.com/w_lorenzetti>
g+:aiki74 <https://plus.google.com/117055903318462447104/>
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)
Nuovi corsi QGIS e GFOSS 
<http://gis3w.it/it/calendario-corsi-software-geografici>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190226/f3cfff17/attachment-0001.html>


More information about the QGIS-Developer mailing list