Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBS Migration to IO2 family disk for production DB #343

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions values.production.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ osm-seed:
mountPath: /var/lib/postgresql/data
subPath: postgresql-db
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID : vol-08e31c1930e00a478
AWS_ElasticBlockStore_volumeID : vol-08b85b3e370f2d690
AWS_ElasticBlockStore_size: 600Gi
resources:
enabled: true
Expand All @@ -85,17 +85,22 @@ osm-seed:
enabled: true
values: |
listen_addresses = '*'
max_connections = 200
shared_buffers = 8GB
temp_buffers = 512MB
work_mem = 64MB
maintenance_work_mem = 2GB
max_connections = 100
shared_buffers = 7GB
work_mem = 50MB
maintenance_work_mem = 1GB
dynamic_shared_memory_type = posix
effective_io_concurrency = 200
max_wal_size = 2GB
min_wal_size = 1GB
min_wal_size = 512MB
random_page_cost = 1.1
effective_cache_size = 24GB
effective_cache_size = 20GB
log_min_duration_statement = 10000
log_connections = on
log_disconnections = on
log_duration = on
log_lock_waits = on
log_statement = 'all'
log_timezone = 'Etc/UTC'
datestyle = 'iso, mdy'
timezone = 'Etc/UTC'
Expand All @@ -104,6 +109,14 @@ osm-seed:
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
default_text_search_config = 'pg_catalog.english'
# Parallelism settings
max_parallel_workers_per_gather = 4
max_parallel_workers = 8
max_worker_processes = 8
parallel_tuple_cost = 0.1
parallel_setup_cost = 1000
min_parallel_table_scan_size = 4MB
min_parallel_index_scan_size = 512kB
# ====================================================================================================
# Variables for osm-seed website
# ====================================================================================================
Expand Down Expand Up @@ -133,7 +146,7 @@ osm-seed:
NEW_RELIC_LICENSE_KEY: {{PRODUCTION_NEW_RELIC_LICENSE_KEY}}
NEW_RELIC_APP_NAME: {{PRODUCTION_NEW_RELIC_APP_NAME}}
ORGANIZATION_NAME: OpenHistoricalMap
WEBSITE_STATUS: "api_readonly"
WEBSITE_STATUS: "online"
resources:
enabled: true
requests:
Expand Down
2 changes: 1 addition & 1 deletion values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ osm-seed:
min_wal_size = 80MB
random_page_cost = 1.1
effective_cache_size = 6GB
log_min_duration_statement = 1000
log_min_duration_statement = 10000
log_connections = on
log_disconnections = on
log_duration = on
Expand Down
Loading