[QGIS-Developer] [Server] Is QGIS Server 3 fast yet ? the 2018-02-06

René-Luc Dhont rldhont at gmail.com
Thu Feb 8 10:58:19 PST 2018


Hi Andreas,

The problem with Apache is that the QGIS Server processes are regularly 
reset. So the QGIS Server cache is regularly cleaned, and the project is 
regularly reloaded. So the project is not loading every time a request 
is being made but some time.

I have opened an issue to have min, max and median requests time to have 
a better idea of the performances. But I have no skill in SCALA and 
Gatling to propose a PR.

It will be great to test other Web Server like Nginx/Supervisor or 
Tornado embedding QGIS Server.

Regards,
René-Luc

Le 08/02/2018 à 15:59, Andreas Neumann a écrit :
>
> Hi René Luc,
>
> Good points. I also had a look at these stats and was disappointed.
>
> So I agree that it would be worth-wile working on improving the 
> performance of QGIS server version 3.
>
> On the QgsProject loading performance issue: is this only an issue at 
> the first loading of the project or every time a request is being made?
>
> Definitely I would welcome a submission at the next round of QGIS 
> grants to further study the issues and improve perfomance were possible.
>
> Thanks for your thoughts,
>
> Andreas
>
> On 2018-02-08 15:19, René-Luc Dhont wrote:
>
>> Hi Devs,
>>
>> I have made some analyse of the performances data generated by 
>> CampToCamp test platform.
>> The data are downloadable here 
>> https://gmf-test.sig.cloud.camptocamp.net/ms_perfs/
>> And the tests are based on this docker-pull: 
>> https://github.com/camptocamp/ms_perfs
>>
>> The QGIS Server docker used for these tests are based on the Kartoza 
>> one updated by CampToCamp
>> https://github.com/kartoza/docker-qgis-server It is based on Apache 
>> Server and FCGI.
>>
>> The data comes from OpenStreetMap and are stored in a 
>> PostgreSQL/PostGIS database.
>> One type of request is tested, GetMap. Varoious number of 
>> simultaneous users and various scale
>> are tested.
>>
>> To give an answer to the question : Is QGIS Server 3 fast yet ? , I 
>> only used the values for 10 simultaneous
>> users.
>>
>> If the reference to the question is QGIS Server 2: QGIS Server 3 is 
>> NOT faster even with the trust option activated in the project.
>> QGIS Server 3 is always slower than QGIS Server 2, when only one 
>> layer is requested.
>> In the tests, QGIS Sever 3 is faster than QGIS Server 2 with 
>> multi-layers and complex styles.
>>
>> This result can be easily explain by the new way QGIS Server is 
>> loaded project. QGIS Server 3 uses the QgsProject class, so all the
>> project : layers and layouts are loaded even if only one layer is 
>> requested.
>>
>> About the trust project option, the results are a little bit 
>> disappointing. The performances are not always better than without.
>> For higher scale (1° by 800px), requests are slower, but for lower 
>> scale (0.015625° by 800px), they are faster.
>>
>> Now if we consired GeoServer-jai as a reference, QGIS Server 3 is 
>> slower in lower sacle (0.03125° by 800px)
>> Now if we consired Mapserver as a reference, QGIS Server 3 is slower!
>>
>> We have to test some configuration:
>> * disable simplify local
>> * change simplify max scale
>>
>> Points of enhancement have to be explored :
>> * Faster QgsProject loading based on project parsing
>> * Simplify configuration at layer level
>> * Completing trust option
>>
>> Regards,
>> René-Luc
>> * Enhance simplification
>>
>> _______________________________________________
>> 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
>
>

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


More information about the QGIS-Developer mailing list