Skip to content

Commit

Permalink
Update tiler db templates - adding sharedMemorySize
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 18, 2024
1 parent 2906caa commit 94ad0fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions osm-seed/templates/tiler-db/tiler-db-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ spec:
- name: tiler-db-postgresql-config
mountPath: /etc/postgresql/
{{- end }}
- name: shared-memory
mountPath: /dev/shm
{{- if .Values.tilerDb.resources.enabled }}
resources:
requests:
Expand All @@ -101,6 +103,10 @@ spec:
configMap:
name: {{ .Release.Name }}-tiler-db-postgresql-config
{{- end }}
- name: shared-memory
emptyDir:
medium: Memory
sizeLimit: {{ .Values.tilerDb.sharedMemorySize }}
{{- if .Values.tilerDb.nodeSelector.enabled }}
nodeSelector:
{{ .Values.tilerDb.nodeSelector.label_key }} : {{ .Values.tilerDb.nodeSelector.label_value }}
Expand Down
16 changes: 16 additions & 0 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ tilerDb:
# GCP
GCP_gcePersistentDisk_pdName: osmseed-disk-tilerdb-v1
GCP_gcePersistentDisk_size: 50Gi
sharedMemorySize: 64Mi
resources:
enabled: false
requests:
Expand Down Expand Up @@ -526,6 +527,21 @@ tilerServerCacheCleaner:
minReplicas: 1
maxReplicas: 2
cpuUtilization: 60

tilerCacheCleanerJob:
enabled: false
tilesFile: imposm/imposm3_expire_dir/latest.tiles
minZoom: 0
maxZoom: 20
overwrite: true
resources:
enabled: false
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1"
# ====================================================================================================
# Variables for Tasking Manager DB
# ====================================================================================================
Expand Down

0 comments on commit 94ad0fe

Please sign in to comment.