[OpenLayers-Trac] [OpenLayers] #803: MapServer Multi-URLs: Deterministic or Random?

OpenLayers trac at openlayers.org
Thu Jul 5 14:24:41 EDT 2007


#803: MapServer Multi-URLs: Deterministic or Random?
-----------------------------+----------------------------------------------
 Reporter:  euzuro           |       Owner:  crschmidt
     Type:  feature          |      Status:  new      
 Priority:  minor            |   Milestone:           
Component:  Layer.MapServer  |     Version:  2.4      
 Keywords:                   |  
-----------------------------+----------------------------------------------
 In going through the MapServer layer and I notice this:

 {{{
         // if url is not a string, it should be an array of strings,
         //  in which case we will randomly select one of them in order
         //  to evenly distribute requests to different urls.
         if (typeof url == "object") {
             url = url[Math.floor(Math.random()*url.length)];
         }
 }}}

 whereas in HTTPRequest, it is:

 {{{
         // if url is not a string, it should be an array of strings,
         // in which case we will deterministically select one of them in
         // order to evenly distribute requests to different urls.
         //
         if (url instanceof Array) {
             url = this.selectUrl(paramsString, url);
         }
 }}}


 I dont know anything about the MapServer layer, but it seems to me that we
 could maybe be doing the same (deterministic) thing for mapserver layer as
 we are for wms.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/803>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list