[ka-Map-users] ka-map with PHP as a CGI vs. DSO?

Paul Spencer pspencer at dmsolutions.ca
Tue May 31 12:46:16 EDT 2005


cool.

Stephen Woodbridge wrote:
> Paul,
> 
> I have looked into using mod_rewrite and an apache ErrorDocument cgi. I 
> think this will be straight forward to do, but the javascript will need 
> to put the MetaTileID on the request url so it can be picked up my 
> mod_rewite regex. It doesn't look like the group/layer info is being 
> passed to the tile.php url via the javascript which is fine for my 
> purposes, but you would need to pass that also if you want mod_write to 
> pick it up. These extra parameters can be ignored by tile.php
> 
> Once I get the MetaTileID calculated in javascript and added to the url, 
> I should be able to give it a try. If it works I'll see if I can run 
> some timing tests on it.
> 
> -Steve
> 
> Stephen Woodbridge wrote:
> 
>> It would need to be set up and tested, but if you have a good size 
>> cache and are getting a 70% hit rate then you are generating 70% less 
>> CGI processes that do nothing but spool a file back to the client 
>> which apache does very well.
>>
>> Is this "substantially better"? Don't know.
>>
>> -Steve
>>
>> Paul Spencer wrote:
>>
>>> Stephen is probably correct, using the web server to generate 404 
>>> errors and using a web server configuration that redirects the error 
>>> handler could be an excellent way to handle this.
>>>
>>> I am not convinced that it would be substantially better than the dso 
>>> method ... but that's where I am also hoping to get feedback :)
>>>
>>> Paul
>>>
>>> Stephen Woodbridge wrote:
>>>
>>>> I thinking that be possible to convert ka-map requests to actual 
>>>> tile images instead of via the CGI, and have it be smart enough to 
>>>> handle a 404 response for a tile by re issuing the request via the CGI.
>>>>
>>>> This would unload the server significantly at the cost of a slightly 
>>>> longer delay in generating a new tile. It might be that the new tile 
>>>> will load faster anyway because there is more processor time 
>>>> available to generate the new tiles.
>>>>
>>>> -Steve
>>>>
>>>> Matthew Perry wrote:
>>>>
>>>>> Hey folks,
>>>>>
>>>>>   It occured to me, as I watched my processor run near 100% due to a
>>>>> few ka-map tile requests, that running ka-map with PHP as a CGI might
>>>>> be a serious liability. In other words, having to start a new process
>>>>> for each tile is extremely expensive compared to running a persistent
>>>>> process or daemon.
>>>>>
>>>>>   Has anyone used Ka-Map with PHP/Mapscript as a DSO? It seems as if
>>>>> this would speed things up a bit. Is this even possible? There has
>>>>> been some discussion on the Mapserver list and the consensus is still,
>>>>> unfortunately, that Apache 2 with PHP DSO is not stable with Mapscipt.
>>>>> Does anyone's experience prove otherwise??
>>>>>
>>>>> What are other folks doing to improve ka-map perfomance given the
>>>>> limitations of CGI?
>>>>>
>>>>
>>>> _______________________________________________
>>>> ka-Map-users mailing list
>>>> ka-Map-users at lists.maptools.org
>>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>>
>>>
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
> 
> 

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the ka-Map-users mailing list