chore: increase routing memory limits for CH graph build
This commit is contained in:
+6
-3
@@ -44,15 +44,18 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8989:8080"
|
- "8989:8080"
|
||||||
environment:
|
environment:
|
||||||
- JAVA_OPTS=-Xmx2g -Xms512m
|
- JAVA_OPTS=-Xmx4g -Xms512m
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 3g
|
memory: 6g
|
||||||
volumes:
|
volumes:
|
||||||
- ./infrastructure/osm-data:/data
|
- ./infrastructure/osm-data:/data
|
||||||
- ./infrastructure/docker/graphhopper/config.yml:/graphhopper/config.yml
|
- ./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:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in New Issue
Block a user