Replies: 1 comment 2 replies
-
Yes. Discovery is currently non-recursive. I'd be happy to review a PR adding recursive discovery if it comes with a well-defined source ID mapping.
We haven't specifically tested or benchmarked Martin at that scale. It may work, but we don't have data on startup time, memory usage, catalog size, or filesystem watching with that many sources. Contributions to improve this use case are also welcome.
We don't have any established recommendations for workloads like this, as it's not a use case I've seen often or worked with. Martin is generally optimized around serving a relatively small number of large tile archives rather than a very large number of small ones, but whether that trade-off makes sense depends on your update frequency, storage layout, and access patterns. If you end up evaluating approaches, we'd be interested in hearing about your findings. Real-world benchmark data for this kind of workload would be valuable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm evaluating Martin (v1.11.0) for serving weather tiles in a structure similar to Windy, where tiles are organized along several dimensions: forecast model × variable × forecast hour/timestamp. With a separate
.pmtilesarchive per combination, this naturally produces a deep directory tree and a very large number of files — on the order of 100k+.A simplified layout looks like this:
I have two questions:
From my testing and reading the docs, a directory listed under
pmtiles.pathsseems to be scanned only at the top level — nested subdirectories are not discovered.Right now my workarounds are to either list every leaf directory explicitly under
paths, enumerate files individually undersources, or flatten everything into one directory. For a tree this large, none of these scale well.Is Martin designed and tested to handle on the order of 100k+ PMTiles sources from local disk? I'd love to understand the practical limits and trade-offs:
/catalogbehavior and response size at this scaledirectory_cache/size_mb) sizing recommendationsAny guidance on recommended patterns for this kind of high-cardinality, frequently-updated weather workload would be very welcome. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions