Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to stop and then resume the import? #394

Open
ghevge opened this issue Oct 2, 2023 · 4 comments
Open

Is there a way to stop and then resume the import? #394

ghevge opened this issue Oct 2, 2023 · 4 comments

Comments

@ghevge
Copy link

ghevge commented Oct 2, 2023

I'm trying to import the whole worlds into my test tiles server, but the import operation is very time consuming. So I would like to stop it at some point and resume it later. Is that possible? If yes, how?

I was trying to just kill the import container, and then restart it, but during the restart, the container fails to start, while trying to recreate a role in the DB.

My import docker-compose looks like this:

version: "3.8"

services:
  tile-service:
    image: overv/openstreetmap-tile-server
    container_name: tile-service
    deploy:
      resources:
        limits:
          cpus: 20
          memory: 58G
    environment:
      - OSM2PGSQL_EXTRA_ARGS=-C 8192
      - THREADS=22
      - FLAT_NODES=enabled
    volumes:
      - /data/database/:/data/database/
      - /data/package/planet-230925.osm.pbf:/data/region.osm.pbf
    networks:
      mw-network:
        aliases:
          - tile-service
    ports:
      - "8080:80"
    command: "import"

networks:
  mw-network:
    external:
      name: mw-network
@Istador
Copy link
Contributor

Istador commented Oct 3, 2023

As far as I know: No.

@ghevge
Copy link
Author

ghevge commented Oct 3, 2023

And there is no way to lazy load this data?

@helletheone
Copy link

i need a solutions for that problem

@romannik007
Copy link

connect to the container in sh and adjust run.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants