Skip to content

Commit

Permalink
Update values for tiler-db postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jul 31, 2024
1 parent ce6e5be commit 5c72017
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions images/tiler-server/config/config.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ name = "osm"
type = "mvt_postgis"
uri = "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
# srid = 3857
max_connections = 200
max_connections = 50
###### Land providers
[['providers/land.toml']]

Expand Down Expand Up @@ -91,7 +91,7 @@ type = "mvt_postgis"
uri = "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"

# srid = 3857
max_connections = 200
max_connections = 50
###### Water lands ne
[['providers/water_areas_ne.toml']]

Expand Down
15 changes: 8 additions & 7 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,17 +438,17 @@ osm-seed:
enabled: true
values: |
listen_addresses = '*'
max_connections = 100
shared_buffers = 2GB
work_mem = 20MB
maintenance_work_mem = 512MB
max_connections = 50
shared_buffers = 1GB
work_mem = 15MB
maintenance_work_mem = 256MB
dynamic_shared_memory_type = posix
effective_io_concurrency = 200
max_wal_size = 1GB
min_wal_size = 80MB
random_page_cost = 1.1
effective_cache_size = 6GB
log_min_duration_statement = 10000
effective_cache_size = 4GB
log_min_duration_statement = 15000
log_connections = on
log_disconnections = on
log_duration = off
Expand All @@ -471,11 +471,12 @@ osm-seed:
min_parallel_table_scan_size = 8MB
min_parallel_index_scan_size = 512kB
session_preload_libraries = 'auto_explain'
auto_explain.log_min_duration = '10s'
auto_explain.log_min_duration = '15s'
# Timeout settings
tcp_keepalives_idle = 300
tcp_keepalives_interval = 60
tcp_keepalives_count = 10
# ====================================================================================================
# Variables for tiler-imposm
# ====================================================================================================
Expand Down

0 comments on commit 5c72017

Please sign in to comment.