-
Notifications
You must be signed in to change notification settings - Fork 72
WMS url rewrite when rapidmapping from wms-import #4698
Comments
Yes, this is quite important. We could even imagine applying wms-c for all wms layers in map.geo.
But for sure start with the rapid mapping layers.
Pascal could try this one when away from the testviewer (which remains highest prio)
…On Friday, January 18, 2019, Ambrogio Foletti wrote:
With the rising rapidmapping use, the danger that permalinks using the non-cached version of the layers is greater.
Today, the cached WMS solution, must be explicitly activated by adapting the WMS url (wms.geo.admin.ch --> wms**{s}**.geo.admin.ch See #4256). Without this manual workaround, any rapidmapping event distributed to a wide public via map.geo.admin.ch endangers the WMS infra
Solution as discussed with @davidoesch
Force an URL rewrite from wms.geo to wms**{s}**.geo when a rapidmapping layer is active.
Up for discussion!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#469
|
I thought about making it a standard too, but then the layers with a fast update cycle came to mind. We cannot cache tiles for, say, hydroweb WMS. So, any plan about that? Q1? Q3? Q1 2032? |
Q1 |
Not sure to understand correctly. Sorry, but if And why don't you use WMTS and/or the new dynamic layersConfig ? Layer 'rapidmapping', Single domain, single tile Layer 'rapidmapping2', multiple domains, tiled WMS tile See the config (first two layers) Layer configuration should be in a configuration file, not in the application's black magic. |
Thanks @procrastinatio for your intervention. I try to answer point by point.
Yes, that was the idea. It seemed a good one at the time. Is it no more? Well, great that we have something better!
...or the system could be adapted to accommodate the new requirement (here multiple heavy, potentially very wide usage WMS layers).
If you look at the ticket opening date, the new dynamic layersConfig was still nonexistant (nor really planned. Or I at least was unaware of it).
Again, that's great. But the rapidmapping data layers are not chsdi layers (they are not in the BOD). How does it work in this case? How did you build the config for the layers?
Here, I am 100% with you. Again, thanks for your input. The less bricolage we have the better and I am the first one that needs an eye-opener more often than not. |
Had an interesting talk with @procrastinatio . I try to summarize the points here, since this was always meant as a discussion ticket. I encourage @gjn , @ltclm, @danduk82 and every other interested party to throw their 2 cents in.
|
actually, But for cloudfront cache to be efficient it must use WMS-C, yes. Note that this does not play against using WMS-C also for layers which need fast update, as we use standard cache behavior in cloudfront, whith
which means that if a layer needs a smaller TTL than one hour, we can simply set it on backend side. This will provide the benefits of cloudfront "smoother" if there is a peak in requests (WMS-C, of course) and still allow for other resources to have a greater retention time. |
per layer ttl in wms-bgdi backend can be configured in apache config: |
Am I understanding it right? It would be possible/clever/manageable to make geoadmin to always use tiled WMS when the request goes to wms.geo.admin.ch and the WMS layer is integrated via the import tool? |
@danduk82 SELECT * FROM re3.layers_js WHERE layertype like '%wms%' and singletile order by fk_id_dataset; |
Yes, that's easy. But those are chsdi layers. |
hmmm |
With the rising rapidmapping use, the danger that permalinks using the non-cached version of the layers is greater.
Today, the cached WMS solution, must be explicitly activated by adapting the WMS url (wms.geo.admin.ch --> wms{s}.geo.admin.ch See #4256). Without this manual workaround, any rapidmapping event distributed to a wide public via map.geo.admin.ch endangers the WMS infra
Solution as discussed with @davidoesch
Force an URL rewrite from wms.geo to wms{s}.geo when a rapidmapping layer is active.
Up for discussion!
The text was updated successfully, but these errors were encountered: