Comments (1)
I looked up a bit, this probably means, that the tilemaker
container has been killed due to OOM. I think this project is genius, and we will definitely incorporate it in our operations. The ability to resume is a huge plus. Thanks for creating this! I would like to summarize my experience below, it may help take a step towards the stated goal of the project.
This program aims to be a simple set and forget, one liner which gives anyone - a way to get a full-featured and bang up to date set of vector tiles for the entire planet on small hardware.
So here it is: The auto ram setting decided it can take up to 5950 MB memory, so I have manually lowered that to 4096 MB, but still, I regularly saw memory consumption of the tilemaker
process well over 5 GB. Fortunately I managed to add a 8 more GB of RAM to the instance (now total of 16 GB), so I managed to finish the process. I observed a max memory usage of 10.3 GB for an input size of ~190 MB (cut size was determined at 273 MB). That file contained over 43 million tiles, and I think that is reason for the memory requirements. I am wondering if it is possible to take into consideration the number of tiles in a slice, when determining if it requires further slicing.
There were also minor annoyances like when run without a pbf file given, and if there is an error, usually after the first re-run, the planet osm file is removed (considered corrupt for some reason), thus it needs to be downloaded (and possibly sliced) again. So I quickly reverted to a config file, and I downloaded the planet file myself (I got the url from the code). I also noticed that the shape files are always unzipped, seems unnecessary.
A good improvement would be if slicing could be continued from a previously complete state. So for example in my case, after slicing completed for the 5950 MB RAM limit, I had to rerun the whole process, but it would have been much more efficient to just continue with the already present slices.
Also there was an issue, that a journal file has been left in the mbtiles directory, and that caused tile-join to fail, so I had to rerun the whole joining again.
I am closing this issue, as it is not a bug, but I see several improvements here (I have never written a single line in go):
- drastically reduce the auto-determined memory limit. I would say 1/4 of detected memory could be OK
- or alternatively tile count could be taken into account during the decision if a chunk needs further slicing
- do not remove
planet.osm.pbf
automatically (when no pbf file is given), maybe prompt the user before doing so - improve slicing so it can continue from a previous final state with a new bound (lower than before)
- ensure
tile-join
is only run on*.mbtiles
files only, no journal file should be passed to the command
Please let me know what you think about these ideas!
from sequentially-generate-planet-mbtiles.
Related Issues (17)
- Error building osmium in Debian Bullseye HOT 1
- Slicing fails with germany-latest.osm.pbf
- Coastline and Rivers broken on planet generation
- mbtiles.go:63: exit status 255
- 8080:80 or 8080:8080 ? HOT 2
- Ubuntu 22.04 Osmium problem HOT 3
- Docker build fails on Windows: HOT 1
- Documentation update HOT 1
- Read info from database instead of pbf file.
- mbtiles.go:63: exit status 139
- temporary mbtiles, overlap after join (merge)
- Produce same results as Planetiler (schema config)
- Missing tiles in generated mbtiles
- Some landcover files can not be found HOT 1
- mbtiles can't be merged HOT 4
- Street names are cut off on higher zoom levels HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequentially-generate-planet-mbtiles.