wiktorn / Overpass-API

Overpass API docker image
MIT License
134 stars 48 forks source link

Failed to process planet file #37

Closed arne182 closed 9 months ago

arne182 commented 4 years ago

[ ok ] osm:~# service docker start

arne182 commented 4 years ago

Looks like 1GB of RAM is too little. Will try again with two

arne182 commented 4 years ago

2GB of RAM also failed. Trying 4GB.

arne182 commented 4 years ago

4GB just failed but 4GB and cgroup_enable=memory swapaccount=1 with an 8GB swap worked. For a smaller 100M file

arne182 commented 4 years ago

Would it be possible to load two regions into the same DB file?

wiktorn commented 4 years ago

Yes, it's possible. You would need to to point Overpass to extract that contains all needed regions, and then use osmium with -p in OVERPASS_PLANET_PREPROCESS to do the job for you. But this will handle only initial load, not updates. There is a small refactor needed, to handle that in update process too.

You would need also to create definitions of regions you want to extract in a file and mount it within your container.