mapproxy icon indicating copy to clipboard operation
mapproxy copied to clipboard

Seeding overpowering low performance WMS/WMTS server

Open sanderpukk opened this issue 3 years ago • 3 comments

Context

We have to seed from an existing WMTS service provider into our own MapProxy and Mapserver system because our services need to be 24/7 and high capability. While we seed from them, MapProxy basically overwhelms them and there isnt that much we can do about it besides getting hard copies of the needed tiles.

Possible Fix

Already using it from 1.13 version. Have already added to our process, but dont mind sharing. Basically add a parameter for the seeding process where the user can set how many times does the seeding request a tile when no response is given or error. Then another parameter for adding wait time between request so the seeding can spread out.

Overall adds two variables to control the seeding process more. In default mode nothing changes.

sanderpukk avatar Jul 20 '21 07:07 sanderpukk

Did you already try the concurrent_requests parameter?

https://mapproxy.org/docs/latest/sources.html#wms-source-concurrent-requests-label

Why does it not solve the problem?

weskamm avatar Jul 20 '21 10:07 weskamm

concurrent is 1. It's still too much most of the time. And it doesnt solve the max_request anyways.

sanderpukk avatar Jul 20 '21 10:07 sanderpukk

I would like to do a pull request to add that parameter. It does not change default behavior and is useful for bad WMS and WMTS service providers.

sanderpukk avatar Aug 23 '21 08:08 sanderpukk