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

DB migration postgres 11 to 14 #293

Merged
merged 36 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b7de769
Update postgres version from 11 to 14
Rub21 Apr 16, 2024
f2a060f
Merge branch 'staging' into api-db/update
Rub21 Apr 18, 2024
96821a7
Update path for env vars - development
Rub21 Apr 18, 2024
48cede6
Update the EBS volume that contains the migration data
Rub21 Apr 18, 2024
6410929
Update ebs from migration
Rub21 Apr 18, 2024
5433db0
Merge pull request #291 from OpenHistoricalMap/api-db/update
Rub21 Apr 18, 2024
31b56d4
Set up settings-local.yml
Rub21 Apr 19, 2024
8f8f718
Merge pull request #292 from OpenHistoricalMap/settings/web
Rub21 Apr 19, 2024
71e84de
Update env vars for DB
Rub21 Apr 19, 2024
586e825
Add postgresql.conf to customize values in postgres
Rub21 Apr 22, 2024
4119092
Update osm-seed version
Rub21 Apr 22, 2024
fd3cb84
Update ebs staging disk
Rub21 Apr 23, 2024
286e95c
Update cronjob for taginfo
Rub21 Apr 23, 2024
cd6f4ed
Merge branch 'main' into staging
Rub21 Apr 24, 2024
900cb82
Test replication files from new API DB
Rub21 Apr 25, 2024
642ea2e
Update tiler EBS - staging, to test new API DB
Rub21 Apr 25, 2024
039c4d7
Update postgres config for staging and production
Rub21 Apr 26, 2024
3ed7e4c
Update osm-seed version and env vars
Rub21 Apr 26, 2024
fa126f6
Update ebs for tiler and use prod replication files
Rub21 Apr 26, 2024
8db15a2
Disable osmcha - staging
Rub21 Apr 26, 2024
7d4e6f8
Test PBF planet files from latest api-db
Rub21 Apr 26, 2024
a9f0f0c
Update imposm SEQUENCE_NUMBER - staging
Rub21 Apr 26, 2024
5488b1e
Update resources for staging tiler
Rub21 Apr 29, 2024
92d19d0
Update Dockerfile
erictheise Apr 29, 2024
6496b14
Update osm-seed version taginfo
Rub21 Apr 30, 2024
737d571
Merge from main
Rub21 Apr 30, 2024
2fe67a0
Update tiler to displaywaterbody in lower zoom
Rub21 Apr 30, 2024
efd9625
Add natural earth - water lakes for tiler
Rub21 Apr 30, 2024
90f7fb0
Natural Earth provider/water-areas zoom 0-10
Rub21 May 1, 2024
ce2ebce
Update cronjob resource for taginfo-staging
Rub21 May 1, 2024
ac4f051
Update osm-seed version
Rub21 May 2, 2024
402e4c9
Set read_only mode for website - staging
Rub21 May 2, 2024
053ffea
Update settings.yml for key oauth - staging
Rub21 May 2, 2024
c4aa185
Set WEBSITE_STATUS in settings.yml
Rub21 May 2, 2024
eefcb00
Update setting-local website status
Rub21 May 2, 2024
daa10f4
Update EBS volume id for production api
Rub21 May 2, 2024
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
Prev Previous commit
Next Next commit
Update ebs staging disk
  • Loading branch information
Rub21 committed Apr 23, 2024
commit fd3cb843fe67413b21dbbeeaecf66698be8af9ed
4 changes: 2 additions & 2 deletions compose/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'
services:
db:
platform: linux/amd64
image: osmseed-db:v1
image: ohm-db:v2
build:
context: ./../images/db
dockerfile: Dockerfile
Expand All @@ -13,7 +13,7 @@ services:
env_file:
- ./../envs/.env.web
web:
image: osmseed-web:v1
image: ohm-web:v1
build:
context: ./../images/web
dockerfile: Dockerfile
Expand Down
10 changes: 5 additions & 5 deletions images/db/config/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ listen_addresses = '*'
# defaults to 'localhost'; use '*' for all
# (change requires restart)
#port = 5432 # (change requires restart)
max_connections = 150 # (change requires restart)
max_connections = 200 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
# (change requires restart)
Expand Down Expand Up @@ -130,12 +130,12 @@ shared_buffers = 128MB # min 128kB
# (change requires restart)
#huge_page_size = 0 # zero for system default
# (change requires restart)
#temp_buffers = 8MB # min 800kB
temp_buffers = 512MB # min 800kB
#max_prepared_transactions = 0 # zero disables the feature
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
#work_mem = 4MB # min 64kB
work_mem = 32MB # min 64kB
#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
#maintenance_work_mem = 64MB # min 1MB
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
Expand Down Expand Up @@ -382,15 +382,15 @@ min_wal_size = 80MB
# - Planner Cost Constants -

#seq_page_cost = 1.0 # measured on an arbitrary scale
#random_page_cost = 4.0 # same scale as above
random_page_cost = 1.1 # same scale as above
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
#parallel_setup_cost = 1000.0 # 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 = 4GB
effective_cache_size = 16GB

#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
Expand Down
2 changes: 1 addition & 1 deletion values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ osm-seed:
mountPath: /var/lib/postgresql/data
subPath: postgresql-db
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID : vol-08e9a73c3c0f2855c
AWS_ElasticBlockStore_volumeID : vol-09964172ef71bc8e8
AWS_ElasticBlockStore_size: 200Gi
resources:
enabled: false
Expand Down
Loading