From 1f4213881153a4aca4311de2740af45e3fc479fa Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Tue, 25 Jun 2019 11:53:26 +0200 Subject: [PATCH 1/2] Tweak pelias.json See #4. --- projects/lobid_DACH/pelias.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/lobid_DACH/pelias.json b/projects/lobid_DACH/pelias.json index 69ba4dc1..6f6f8974 100755 --- a/projects/lobid_DACH/pelias.json +++ b/projects/lobid_DACH/pelias.json @@ -36,6 +36,9 @@ "focus.point.lon": 6.95428 } }, + "logger": { + "level": "debug" + }, "imports": { "adminLookup": { "enabled": true @@ -80,11 +83,14 @@ }, "whosonfirst": { "datapath": "/data/whosonfirst/", - "importVenues": false, + "importVenues": true, "importPostalcodes": true }, - "interpolation": { + "services": { + "pip": { "url": "http://pip:4200" } + }, + "interpolation": { "datapath": "/data/interpolation/" } - } + } } From 6da3536743e87de3611e28811ce1ff18422963a0 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Thu, 5 Sep 2019 16:43:26 +0200 Subject: [PATCH 2/2] Tweak pelias.json more; update Readme; increase http-timeout See #5. --- projects/lobid_DACH/.env | 1 + projects/lobid_DACH/README.md | 12 +++++++++++- projects/lobid_DACH/pelias.json | 25 ++++++++++++++++--------- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/projects/lobid_DACH/.env b/projects/lobid_DACH/.env index 245cbb90..63c05e20 100644 --- a/projects/lobid_DACH/.env +++ b/projects/lobid_DACH/.env @@ -1,3 +1,4 @@ COMPOSE_PROJECT_NAME=pelias DOCKER_USER=1000 DATA_DIR=/data/ +COMPOSE_HTTP_TIMEOUT=2000 diff --git a/projects/lobid_DACH/README.md b/projects/lobid_DACH/README.md index f0f0e5c7..09ec42b0 100755 --- a/projects/lobid_DACH/README.md +++ b/projects/lobid_DACH/README.md @@ -8,13 +8,23 @@ See https://github.com/hbz/lobid-organisations/issues/419. Atm not all queries result accurate data, so there is room for proper configuration and data input. # Setup - +Change to the proper directory: +```bash +$ cd pelias/project/lobid_DACH/ +``` Please refer to the instructions at https://github.com/pelias/docker in order to install and configure your docker environment. The minimum configuration required in order to run this project are [installing prerequisites](https://github.com/pelias/docker#prerequisites), [install the pelias command](https://github.com/pelias/docker#installing-the-pelias-command) and [configure the environment](https://github.com/pelias/docker#configure-environment). Please ensure that's all working fine before continuing. +Tweak elasticsearch to use 8GB: +```bash +$ docker exec -u 0 -it pelias_elasticsearch bash +$ vi config/jvm.options # here change the -Xmx and -Xms to 8GB +$ pelias elasticsearch stop; pelias elasticsearch start; # restart elasticseach +``` + # Run a Build To run a complete build, execute the following commands: diff --git a/projects/lobid_DACH/pelias.json b/projects/lobid_DACH/pelias.json index 6f6f8974..363fcff4 100755 --- a/projects/lobid_DACH/pelias.json +++ b/projects/lobid_DACH/pelias.json @@ -16,7 +16,9 @@ "number_of_replicas": "0", "number_of_shards": "1" } - } + }, + "restart": "always", + "environment": [ "ES_JAVA_OPTS=-Xmx8g" ] }, "acceptance-tests": { "endpoints": { @@ -37,7 +39,7 @@ } }, "logger": { - "level": "debug" + "level": "info" }, "imports": { "adminLookup": { @@ -45,7 +47,7 @@ }, "geonames": { "datapath": "/data/geonames", - "countryCode": "de" + "countryCode": "ALL" }, "openstreetmap": { "leveldbpath": "/tmp", @@ -79,18 +81,23 @@ }, "polyline": { "datapath": "/data/polylines", - "files": ["extract.0sv"] + "files": ["planet-latest-valhalla.polylines.0sv"] }, "whosonfirst": { - "datapath": "/data/whosonfirst/", - "importVenues": true, - "importPostalcodes": true + "datapath": "/data/whosonfirst", + "importPostalcodes": true, + "importPlace": [ + "85633111", + "85632785", + "85633051" + ], + "sqlite": true }, "services": { "pip": { "url": "http://pip:4200" } }, - "interpolation": { + "interpolation": { "datapath": "/data/interpolation/" - } + } } }