Ticket #410
(closed bug: fixed)
multi-wms servers should use deterministic server id
| Reported by: |
crschmidt |
Owned by: |
sderle
|
|
Priority:
|
minor
|
Milestone:
|
2.4 Release
|
|
Component:
|
Layer
|
Version:
|
SVN
|
|
Keywords:
|
|
Cc:
|
|
|
State:
|
|
|
|
Non-deterministic server choice is a bad idea. When I view a tile, I may get caching headers with that URL from a properly configured server. By randomly changing the server I request from, the browser has to store up to numUrls caches for each tile.
Instead, make this deterministic based on the integer value of the request parameters, modded into the severs array. Deployed on http://labs.metacarta.com/wms-c/demo.html, patch incoming against SVN.
Attachments
-
multi.patch
(3.5 KB) - added by crschmidt
7 years ago.
-
multi-wms.patch
(0.9 KB) - added by tschaub
7 years ago.
-
alternative deterministic server indexing for multi-wms
-
deterministic-server-select.patch
(4.7 KB) - added by sderle
6 years ago.
-
deterministic server selection based on simple real number hashing algorithm
-
deterministic-server-select2.patch
(4.7 KB) - added by tschaub
6 years ago.
-
same as above but with left,bottom instead of minx,miny
-
410-final.patch
(6.5 KB) - added by sderle
6 years ago.
-
merger of my and Chris's patch
-
multiUrls-fix.patch
(2.7 KB) - added by euzuro
6 years ago.
-
this fixes the httplayer in opera and ie, and does not break in ff either. the idea is that you cannot safely pass the url variable to Util.getArgs() anymore now that it could be either a string or an array of urls (which, of course, is a perfect example of why making a variable like that which can be of two different types is generally not a good idea). So what we do is we do the deterministic url selecting bit *before* that call... and then we rebuild the paramString again after the call and the check. I have added some basic coments to at least correctly document the type of the 'url' property
-
410-really-final.patch
(6.2 KB) - added by sderle
6 years ago.
-
patch incorporating Erik's last patch plus recommended changes
Change History