[mapserver-users] Benchmarking suite in progress..

Peter Schmitt pschmitt at gmail.com
Sat Apr 4 20:29:27 PDT 2020


Nice, glad to hear! The overhead starting a new process for each request is
a huge performance hit. Would be interesting to see a plot of performance
benchmarks comparing all your setups.

Cheers,
Pete

On Sat, Apr 4, 2020 at 9:10 PM James Gardner <jsg at internode.on.net> wrote:

> that setup, on my home machine, answers twice as many requests in 10
> minutes, as my 'best' setup using apache2 and mod_cgi
>
> i think i am getting such poor performance with fcgiwrap because it needs
> to spawn a new mapserver process for each request... but because it has
> 'fast' in the name, i simply assume its going to be 'fast'... oh well.. i
> know better now.. .
>
> Thanks Peter!
>
>    James Gardner
>
>
> On 5/4/20 10:32 am, Peter Schmitt wrote:
>
> Hi James,
>
> I am not familiar with fcgiwrap.  Here's what my setup looks like:
> Nginx proxies to MapServer listening on a unix socket.
> https://github.com/pedros007/debian-mapserver/blob/master/etc/nginx/sites-available/mapserver_proxy.conf
> This looks pretty similar to your nginx conf:
>
> https://github.com/kalessine/mapserver-benchmark/blob/c7927f9482b28cce2e2585296f760c2ba3547ca5/nginx-fcgiwrap/default#L56-L69
>
> I use supervisord to start 8 mapserv processes listening on the above
> socket.  Here's my supervisord config:
> https://github.com/pedros007/debian-mapserver/blob/master/etc/supervisor/conf.d/supervisord.conf
> Supervisor starts both nginx and the 8 mapserv processes.  This really
> simplifies server startup in my Dockerfile:
>
> https://github.com/pedros007/debian-mapserver/blob/88ef21ae0846db5732e782a2dd56e925c149acd8/Dockerfile#L72
>
> I haven't done much benchmarking on this in several years. At one point I
> did experiment with Apache mod_fcgi and got pretty good performance. From
> what I recall this was ever so slightly faster. In any case, when my Docker
> container runs on an AWS EC2 instance,  MapServer returns 256x256 raster
> jpgs from GeoTIFFs stored in an AWS S3 Bucket in about 300-500 ms under
> reasonable loads.  Local optimized GeoTIFFs can be much faster, especially
> on SSDs (less than 100ms) using this setup.
>
> Hope that helps!
> Pete
>
>
> On Sat, Apr 4, 2020 at 8:18 AM James Gardner <jsg at internode.on.net> wrote:
>
>> Hi!
>>
>> I have done some preliminary work on a mapserver benchmarking project....
>>
>> github.com/kalessine/mapserver-benchmark/
>>
>> documentation is sparse at the moment, but i'll do some more work on
>> this next week...
>>
>> my initial tests show that mapserv called by fcgiwrap from nginx is
>> quite slow :( there seems to be
>>
>> an additional 1 second of latency added to each request... if anyone
>> knowledgeable on ubuntu 18.04, nginx, fcgiwrap and mapserv could have a
>> look at my server script (under mapserver-benchmark/nginx-fcgiwrap/ and
>> give me some advice as to where i'm going wrong...
>>
>> i'm thinking it may be in the fastcgi_params file that comes stock with
>> nginx..
>>
>> apache2 responds to requests much (6x requests in 10mins) faster...
>>
>> suggestions welcome!
>>
>> Thanks,
>>
>>     James Gardner
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> Pete
>
>

-- 
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200404/0cbee8e0/attachment.htm>


More information about the MapServer-users mailing list