Skip to content

Commit

Permalink
Merge pull request #450 from OpenHistoricalMap/prod/tiler_config
Browse files Browse the repository at this point in the history
Change tiler-db for production
  • Loading branch information
Rub21 authored Dec 28, 2024
2 parents 928ccef + f1fc0b1 commit 66a5b7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions images/tiler-imposm/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ function updateData() {
echo "Create views"
python materialized_views.py &

local s3_last_state_path="${AWS_S3_BUCKET}/${BUCKET_IMPOSM_FOLDER}/last.state.txt"
# local s3_last_state_path="${AWS_S3_BUCKET}/${BUCKET_IMPOSM_FOLDER}/last.state.txt"
local local_last_state_path="$DIFF_DIR/last.state.txt"
echo "Checking if $s3_last_state_path exists in S3..."
if aws s3 ls "$s3_last_state_path" > /dev/null 2>&1; then
echo "Found $s3_last_state_path. Downloading..."
aws s3 cp "$s3_last_state_path" "$local_last_state_path"
fi
# echo "Checking if $s3_last_state_path exists in S3..."
# if aws s3 ls "$s3_last_state_path" > /dev/null 2>&1; then
# echo "Found $s3_last_state_path. Downloading..."
# aws s3 cp "$s3_last_state_path" "$local_last_state_path"
# fi

### Update the DB with the new data from minute replication
if [ "$OVERWRITE_STATE" = "true" ]; then
Expand Down
12 changes: 6 additions & 6 deletions values.production.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ osm-seed:
label_value: api_db
env:
POSTGRES_HOST: {{PRODUCTION_TILER_DB_HOST}}
POSTGRES_DB: tiler_osm_prod_v4
POSTGRES_DB: tiler_osm_prod_v5
POSTGRES_USER: postgres
POSTGRES_PASSWORD: {{PRODUCTION_TILER_DB_PASSWORD}}
POSTGRES_PORT: 5432
Expand Down Expand Up @@ -455,20 +455,20 @@ osm-seed:
label_value: web_large
env:
TILER_IMPORT_FROM: osm
TILER_IMPORT_PBF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-241214_1202.osm.pbf
TILER_IMPORT_PBF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-241226_0001.osm.pbf
REPLICATION_URL: http://s3.amazonaws.com/planet.openhistoricalmap.org/replication/minute/
SEQUENCE_NUMBER: '1677612'
SEQUENCE_NUMBER: "1681000"
OVERWRITE_STATE: false
UPLOAD_EXPIRED_FILES: true
IMPORT_NATURAL_EARTH: true
IMPORT_OSM_LAND: true
persistenceDisk:
enabled: false
enabled: true
accessMode: ReadWriteOnce
mountPath: /mnt/data
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID: vol-05d06ac388569461f
AWS_ElasticBlockStore_size: 50Gi
AWS_ElasticBlockStore_volumeID: vol-08354b60f5800d4f7
AWS_ElasticBlockStore_size: 100Gi
resources:
enabled: true
requests:
Expand Down

0 comments on commit 66a5b7a

Please sign in to comment.