chore: increase routing memory limits for CH graph build
This commit is contained in:
+6
-3
@@ -44,15 +44,18 @@ services:
|
||||
ports:
|
||||
- "8989:8080"
|
||||
environment:
|
||||
- JAVA_OPTS=-Xmx2g -Xms512m
|
||||
- JAVA_OPTS=-Xmx4g -Xms512m
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 3g
|
||||
memory: 6g
|
||||
volumes:
|
||||
- ./infrastructure/osm-data:/data
|
||||
- ./infrastructure/docker/graphhopper/config.yml:/graphhopper/config.yml
|
||||
command: ["-i", "/data/master_map.osm.pbf", "-c", "config.yml"]
|
||||
# مسار مطلق للـ config: المسار النسبي "config.yml" كان يُحل نسبةً إلى
|
||||
# مجلد عمل الحاوية فيقرأ GraphHopper إعداداته الداخلية بدل ملفنا المركّب.
|
||||
# الدليل في اللوج: "loaded graph at:/data/default-gh" بدل /data/graph-cache.
|
||||
command: ["-i", "/data/master_map.osm.pbf", "-c", "/graphhopper/config.yml"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user