Skip to content

Commit

Permalink
Update config map for tiler seed an purge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 6, 2024
1 parent 394d543 commit 3c9f638
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion images/tiler-cache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1855.h6f536f6
FROM ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1859.h75499f5

RUN apk update && apk add --no-cache \
proj \
Expand Down
2 changes: 1 addition & 1 deletion ohm/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: osm-seed
version: '0.1.0-n805.h7b1713f'
version: '0.1.0-n810.h19d0f7b'
repository: https://devseed.com/osm-seed-chart/
6 changes: 4 additions & 2 deletions ohm/templates/tiler-cache-purge/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ spec:
- name: S3_BUCKET_PATH_FILES
value: {{ .Values.ohm.tilerCachePurge.env.S3_BUCKET_PATH_FILES | quote }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-tiler-server-cm
- configMapRef:
name: {{ .Release.Name }}-tiler-server-cm
- configMapRef:
name: {{ .Release.Name }}-tiler-db-cm
{{- if .Values.ohm.tilerCachePurge.resources.enabled }}
resources:
requests:
Expand Down
6 changes: 4 additions & 2 deletions ohm/templates/tiler-cache-seed/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ spec:
- name: OUTPUT_FILE
value: {{ .Values.ohm.tilerCacheSeed.env.OUTPUT_FILE | quote }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-tiler-server-cm
- configMapRef:
name: {{ .Release.Name }}-tiler-server-cm
- configMapRef:
name: {{ .Release.Name }}-tiler-db-cm
restartPolicy: OnFailure
backoffLimit: 3
{{- end }}
18 changes: 9 additions & 9 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ osm-seed:
tilerDb:
enabled: true
useExternalHost: # When we are using useExternalHost.enabled= true other variables are giong to be disable ans use the external host config
enabled: true
enabled: false
env:
POSTGRES_HOST: {{STAGING_TILER_DB_HOST}}
POSTGRES_DB: tiler_osm_staging
Expand All @@ -412,7 +412,7 @@ osm-seed:
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job_xlarge
label_value: db_large
postgresqlConfig:
enabled: true
values: |
Expand Down Expand Up @@ -481,10 +481,6 @@ osm-seed:

tilerImposm:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
env:
TILER_IMPORT_FROM: osm
TILER_IMPORT_PBF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-241202_0001.osm.pbf
Expand All @@ -510,6 +506,10 @@ osm-seed:
limits:
memory: "24Gi"
cpu: "10"
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
# ====================================================================================================
# Variables for tiler-server
# ====================================================================================================
Expand Down Expand Up @@ -962,11 +962,11 @@ ohm:
enabled: true

tilerCachePurge:
enabled: false
enabled: true
env:
REGION_NAME: us-east-1
NAMESPACE: default # Namespace to run the job
DOCKER_IMAGE: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1791.h27fbedb # TODO, this should be automatically updated from tiler server image
DOCKER_IMAGE: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1859.h75499f5 # TODO, this should be automatically updated from tiler server image
SQS_QUEUE_URL: {{STAGING_SQS_QUEUE_URL}}
NODEGROUP_TYPE: web_large # Nodegroup type to run the job
MAX_ACTIVE_JOBS: 2 # Maximum number of active jobs in high concurrency queue
Expand Down Expand Up @@ -1001,7 +1001,7 @@ ohm:
schedule: '* * * * *'
env:
GEOJSON_URL: https://osmseed-dev.s3.us-east-1.amazonaws.com/tiler/wold-usa-eu.geojson
ZOOM_LEVELS: '7,8,9,10'
ZOOM_LEVELS: '7'
CONCURRENCY: 64
S3_BUCKET: osmseed-dev
OUTPUT_FILE: /logs/tiler_benchmark.log
Expand Down

0 comments on commit 3c9f638

Please sign in to comment.