[mapserver-users] mapcache fastcgi
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Wed Oct 17 04:44:13 PDT 2018
Sorry, MapCache documentation has link to that page as well.
Anyway, my understanding is that Apache module is the fastest alternative and cgi/fcgi exist mainly to be used with other http servers than Apache. Keywords from presentation https://www.slideshare.net/tbonfort/modgeocache-mapcache-a-fast-tiling-solution-for-the-apache-web-server. I hope that developers can confirm if I have understood right.
Apache module• Module = code run by the apache processes that treat requests• Native code• No overhead (e.g. CGI, FastCGI)• Does not require spawning an interpreter per concurrent request• Caveats: – Thread/process synchronization – Memory management – Security
-Jukka- Rahkonen-
Lähettäjä: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Rahkonen Jukka (MML)
Lähetetty: 17. lokakuuta 2018 14:39
Vastaanottaja: Sebastiano Laini <Sebastiano.Laini at BuchananComputing.co.uk>; 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org>
Aihe: Re: [mapserver-users] mapcache fastcgi
Hi,
That documentation is about Mapserver, Mapcache is another software. It does belong to the same Mapserver but is not the same.
MapCache is documented here:
https://mapserver.org/mapcache/index.html#mapcache
-Jukka Rahkonen-
Lähettäjä: Sebastiano Laini [mailto:Sebastiano.Laini at BuchananComputing.co.uk]
Lähetetty: 17. lokakuuta 2018 14:33
Vastaanottaja: 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Kopio: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>
Aihe: RE: mapcache fastcgi
Well, for what I can read in the documentation of mapserver:
https://mapserver.org/optimization/fastcgi.html
FastCGI is a protocol for keeping cgi-bin style web applications running as a daemon to take advantage of preserving memory caches, and amortizing other high startup costs (like heavy database connections) over many requests.
It seems that using mapcache as fastCGI over apache modules it that should improve speed also.
Sebastiano Laini
Web Developer
Buchanan Computing
From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi]
Sent: 17 October 2018 12:30
To: Sebastiano Laini <Sebastiano.Laini at BuchananComputing.co.uk<mailto:Sebastiano.Laini at BuchananComputing.co.uk>>; 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: Re: mapcache fastcgi
Hi,
Could you explain your plan with some more details? What I have understood is that you have experienced that SQLite cache is slower than disk cache in your environment.
What I do not understand is what you are going to reach by running Mapcache as fastcgi instead of running it as Apache module which should be the faster option, and if this has some connection with the SQLite cache vs. disk cache comparison. Do you guess that fastcgi woud make SQLite cache faster?
-Jukka Rahkonen-
Lähettäjä: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastiano Laini
Lähetetty: 17. lokakuuta 2018 12:16
Vastaanottaja: 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Aihe: [mapserver-users] mapcache fastcgi
Hi all,
In the end I tried MapCache with sqlite3 cache but it’s very slow compared with the disk cache, so I want to setup MapCache with fastCGI on CentOS 7.
I don’t understand what I need to install as the fastCGI link in the documentation is broken and I don’t know if is up to date.
I already have apache fgcid installed from default in the httpd folder and I use PHP in fastCGI in all the domains, so I’m sure that fastCGI it works, though, I still need the fastCGI library? How can I install it in CentOS 7?
In my apache conf I’ve already added the lines to load the mapcache module and the mapcache.xml file
LoadModule mapcache_module modules/mod_mapcache.so
<IfModule mapcache_module>
<Directory /path/to/directory>
Require all granted
</Directory>
MapCacheAlias /mapcache "/path/to/directory/mapcache.xml"
</IfModule>
I need to leave the previous configuration and add these new lines in the conf files?
FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/path/to/mapcache/mapcache.xml
<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 10
FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/path/to/mapcache/mapcache.xml"
<Location /map.fcgi>
Order Allow,Deny
Allow from all
SetHandler fcgid-script
</Location>
ScriptAlias /map.fcgi "/path/to/mapcache/src/mapcache"
</IfModule>
And then instead of http://myserver/mapcache I need to use http://myserver/fcgi-bin to access mapcache fcgi?
Regards,
Sebastiano Laini
Web Developer
Buchanan Computing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20181017/939461f0/attachment.htm>
More information about the MapServer-users
mailing list