Skip to content

Commit

Permalink
set api db in just one node - staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jul 9, 2024
1 parent be42c6f commit c9542e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions images/db/config/postgresql.staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ max_connections = 100 # (change requires restart)

# - Memory -

shared_buffers = 1GB # min 128kB
shared_buffers = 2GB # min 128kB
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
Expand All @@ -135,9 +135,9 @@ shared_buffers = 1GB # min 128kB
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
work_mem = 16MB # min 64kB
work_mem = 20MB # min 64kB
#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
maintenance_work_mem = 128MB # min 1MB
maintenance_work_mem = 512MB # min 1MB
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
#logical_decoding_work_mem = 64MB # min 64kB
#max_stack_depth = 2MB # min 100kB
Expand Down Expand Up @@ -390,7 +390,7 @@ random_page_cost = 1.1 # same scale as above
#parallel_tuple_cost = 0.1 # same scale as above
#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
effective_cache_size = 2GB
effective_cache_size = 6GB

#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
Expand Down
14 changes: 7 additions & 7 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ osm-seed:
resources:
enabled: true
requests:
memory: "3Gi"
cpu: "1"
memory: "7Gi"
cpu: "1800m"
limits:
memory: "5Gi"
cpu: "1"
memory: "8Gi"
cpu: "2000m"
sharedMemorySize: 256Mi
livenessProbeExec: true
# ====================================================================================================
Expand Down Expand Up @@ -408,7 +408,7 @@ osm-seed:
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: db
label_value: web
# ====================================================================================================
# Variables for tiler-imposm
# ====================================================================================================
Expand All @@ -418,7 +418,7 @@ osm-seed:
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: db
label_value: web
env:
TILER_IMPORT_FROM: osm
TILER_IMPORT_PBF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-240628_0002.osm.pbf
Expand Down Expand Up @@ -450,7 +450,7 @@ osm-seed:
tilerServer:
enabled: true
nodeSelector:
enabled: false
enabled: true
label_key: nodegroup_type
label_value: web
replicaCount: 1
Expand Down

0 comments on commit c9542e7

Please sign in to comment.