-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set configmap for tiler-db's postgresql.config (#337)
* Set configmap for postgresql.config tiler-db * Remove image values * Add resource allocation for cronjob taginfo
- Loading branch information
Showing
5 changed files
with
90 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.tilerDb.enabled -}} | ||
{{- if .Values.tilerDb.postgresqlConfig.enabled -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-tiler-db-postgresql-config | ||
labels: | ||
app: {{ template "osm-seed.name" . }} | ||
release: {{ .Release.Name }} | ||
data: | ||
postgresql.conf: | | ||
{{ .Values.tilerDb.postgresqlConfig.values | indent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ AWS_SSL_ARN: false | |
# as the SSL certificate for your services. Else, you will need to configure | ||
# SSL separately. | ||
# serviceType: NodePort | ||
serviceType: clusterIP | ||
createClusterIssuer: true | ||
serviceType: ClusterIP | ||
createClusterIssuer: false | ||
# Domain that is pointed to the clusterIP | ||
# You will need to create an A record like *.osmseed.example.com pointed to the ClusterIP | ||
# Then, the cluster configuration will setup services at their respective subdomains: | ||
|
@@ -67,7 +67,7 @@ adminEmail: [email protected] | |
# Variables for osm-seed database | ||
# ==================================================================================================== | ||
db: | ||
enabled: true | ||
enabled: false | ||
image: | ||
name: "" | ||
tag: "" | ||
|
@@ -359,11 +359,11 @@ tilerDb: | |
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: "1234" | ||
POSTGRES_PORT: 5432 | ||
POSTGRES_DB_MAX_CONNECTIONS: 100 | ||
POSTGRES_DB_SHARED_BUFFERS: 128MB | ||
POSTGRES_DB_WORK_MEM: 4MB | ||
POSTGRES_DB_MAINTENANCE_WORK_MEM: 64MB | ||
POSTGRES_DB_EFFECTIVE_CACHE_SIZE: 4GB | ||
# POSTGRES_DB_MAX_CONNECTIONS: 100 | ||
# POSTGRES_DB_SHARED_BUFFERS: 128MB | ||
# POSTGRES_DB_WORK_MEM: 4MB | ||
# POSTGRES_DB_MAINTENANCE_WORK_MEM: 64MB | ||
# POSTGRES_DB_EFFECTIVE_CACHE_SIZE: 4GB | ||
persistenceDisk: | ||
enabled: false | ||
accessMode: ReadWriteOnce | ||
|
@@ -373,8 +373,8 @@ tilerDb: | |
localVolumeHostPath: /mnt/tiler-db-data | ||
localVolumeSize: 10Gi | ||
# AWS | ||
AWS_ElasticBlockStore_volumeID: vol-1234bcd | ||
AWS_ElasticBlockStore_size: 50Gi | ||
AWS_ElasticBlockStore_volumeID: vol-0cf316caac04fc623 | ||
AWS_ElasticBlockStore_size: 20Gi | ||
# GCP | ||
GCP_gcePersistentDisk_pdName: osmseed-disk-tilerdb-v1 | ||
GCP_gcePersistentDisk_size: 50Gi | ||
|
@@ -390,6 +390,26 @@ tilerDb: | |
enabled: false | ||
label_key: nodegroup_type | ||
label_value: tiler | ||
# To use postgresqlConfig, you need to have already $PGDATA set up in a persistent disk | ||
postgresqlConfig: | ||
enabled: false | ||
values: | | ||
listen_addresses = '*' | ||
max_connections = 100 | ||
shared_buffers = 128MB | ||
effective_cache_size = 256MB | ||
maintenance_work_mem = 64MB | ||
checkpoint_completion_target = 0.7 | ||
wal_buffers = 16MB | ||
default_statistics_target = 100 | ||
random_page_cost = 1.1 | ||
effective_io_concurrency = 200 | ||
work_mem = 4MB | ||
min_wal_size = 80MB | ||
max_wal_size = 1GB | ||
max_worker_processes = 4 | ||
max_parallel_workers_per_gather = 2 | ||
max_parallel_workers = 4 | ||
# ==================================================================================================== | ||
# Variables for tiler-imposm | ||
# ==================================================================================================== | ||
|
@@ -708,7 +728,7 @@ taginfo: | |
name: "" | ||
tag: "" | ||
serviceAnnotations: {} | ||
ingressDomain: taginfo.dev.osmseed.org | ||
ingressDomain: taginfo-dev.staging.openhistoricalmap.org | ||
env: | ||
URL_PLANET_FILE_STATE: https://planet.osm.org/pbf/state.txt | ||
URL_HISTORY_PLANET_FILE_STATE: https://planet.osm.org/pbf/full-history/state.txt | ||
|
@@ -734,7 +754,24 @@ taginfo: | |
memory: "2Gi" | ||
cpu: "2" | ||
nodeSelector: | ||
enabled: false | ||
enabled: true | ||
label_key: nodegroup_type | ||
label_value: web | ||
cronjob: | ||
enabled: true | ||
schedule: "0 2 */3 * *" | ||
nodeSelector: | ||
enabled: true | ||
label_key: nodegroup_type | ||
label_value: job_xlarge | ||
resources: | ||
enabled: false | ||
requests: | ||
memory: "13Gi" | ||
cpu: "3600m" | ||
limits: | ||
memory: "14Gi" | ||
cpu: "3800m" | ||
# ==================================================================================================== | ||
# Variables for osm-simple-metrics | ||
# ==================================================================================================== | ||
|