question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Load testing on PMTiles

See original GitHub issue

Hi, thanks for the awesome project!

I’m trying to use pmtiles as basemap in my map project, and I would like to do some load testing on it. Normally I use siege for this kind of testing and I’ll feed URLs with randomised zoom level and x, y values.

I wonder if I could do something similar for pmtiles? If so, how would the URL look like in this case?

FYI, I’m using MaplibreGL and I inserted PMTiles in my code like this:

"tiles": ["pmtiles://sample.pmtiles/{z}/{x}/{y}"]

So I’m not sure what would be a URL in this case.

Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bdoncommented, Feb 15, 2022

I have a little tile testing utility for siege at https://github.com/bdon/TileSiege , but it won’t work this way with PMTiles; you would need to modify the Range: headers of the requests, and those request headers need to be based on the directory.

So you’ll need a more advanced load testing library more likely, and it would simplify your tests to do random ~100KB requests instead of needing to base them off a directory.

0reactions
bdoncommented, Feb 15, 2022

I’m not aware of any, maybe try something like JMeter for video. In any case, this is beyond the scope of PMTiles 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

PMTiles - Protomaps
PMTiles is a general format for tiled data addressed by Z/X/Y coordinates. This can be cartographic basemap vector tiles, remote sensing observations, JPEG ......
Read more >
protomaps/PMTiles - GitHub
PMTiles Inspector - inspect and preview PMTiles local or remote PMTiles archives. Archives on cloud storage may require CORS for the origin https://protomaps....
Read more >
Load Testing a TMS Tile Server with k6.io - Azavea
A tutorial on load testing a TMS tile server with k6.io, which results in clear and more accurate group statistics.
Read more >
An open, cloud-optimized archive format for serverless map data
Introducing a new archive format called PMTiles, based on HTTP Range requests, for serving Z/X/Y tiles from storage APIs such as S3. PMTiles...
Read more >
leaflet tiles with protomaps pmtiles are not visibles (seems to ...
i'm using our own pmtiles tileset server, the test url is : https://tilesets.urbanease.io/cadastre/64/64102/without_protobuf.pmtiles the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found