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

Tweak pelias.json #5

Merged
merged 2 commits into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/lobid_DACH/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
COMPOSE_PROJECT_NAME=pelias
DOCKER_USER=1000
DATA_DIR=/data/
COMPOSE_HTTP_TIMEOUT=2000
12 changes: 11 additions & 1 deletion projects/lobid_DACH/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 22 additions & 9 deletions projects/lobid_DACH/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"number_of_replicas": "0",
"number_of_shards": "1"
}
}
},
"restart": "always",
"environment": [ "ES_JAVA_OPTS=-Xmx8g" ]
},
"acceptance-tests": {
"endpoints": {
Expand All @@ -36,13 +38,16 @@
"focus.point.lon": 6.95428
}
},
"logger": {
"level": "info"
},
"imports": {
"adminLookup": {
"enabled": true
},
"geonames": {
"datapath": "/data/geonames",
"countryCode": "de"
"countryCode": "ALL"
},
"openstreetmap": {
"leveldbpath": "/tmp",
Expand Down Expand Up @@ -76,15 +81,23 @@
},
"polyline": {
"datapath": "/data/polylines",
"files": ["extract.0sv"]
"files": ["planet-latest-valhalla.polylines.0sv"]
},
"whosonfirst": {
"datapath": "/data/whosonfirst/",
"importVenues": false,
"importPostalcodes": true
"datapath": "/data/whosonfirst",
"importPostalcodes": true,
"importPlace": [
"85633111",
"85632785",
"85633051"
],
"sqlite": true
},
"interpolation": {
"services": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting a little off here.

"pip": { "url": "http://pip:4200" }
},
"interpolation": {
"datapath": "/data/interpolation/"
}
}
}
}
}