avniproject / avni-infra

Other
0 stars 0 forks source link

Upgrade postgres version on all RDS instances #41

Open 1t5j0y opened 2 months ago

1t5j0y commented 2 months ago

Postgres 12 is EOL in Nov 2024 and AWS RDS stops support on Feb 28, 2025 after which there will be additional extended support charges for running this version of postgres.

Extended support charges - 0.114/vCPU-hour for years 1 and 2; 0.228/vCPU-hour for year 3 This works out to 10 (current RDS vCPUs) 0.114 730 (hours in month) = Additional $830 + tax / month

AC:

  1. Determine best version to migrate to - preferably latest (17)
  2. Upgrade RDS instances (Avni and RWB)
  3. Upgrade Staging and Prerelease env DBs as well

Not included in this scope

himeshr commented 1 month ago

Relevant documents

himeshr commented 1 month ago

PG Extensions used by Avni:

openchs=> SELECT * FROM pg_extension;
   oid    |  extname  | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
----------+-----------+----------+--------------+----------------+------------+-----------+--------------
    16403 | plpgsql   |       10 |           11 | f              | 1.0        |           |
    16408 | hstore    |       10 |        16402 | t              | 1.4        |           |
    16409 | ltree     |       10 |        16402 | t              | 1.1        |           |
    16410 | tablefunc |       10 |        16402 | t              | 1.0        |           |
    16411 | uuid-ossp |       10 |        16402 | t              | 1.1        |           |
 94143243 | dblink    |       10 |        16402 | t              | 1.2        |           |
(6 rows)
himeshr commented 1 month ago

Targeting Major version 16.3

himeshr commented 3 weeks ago
himeshr commented 2 weeks ago

Suggestion received regarding reporting testing:

Create duplicate reporting server instances and modify /etc/hostnames file to point to prod-dup-16-version rds and get sanity testing done.

himeshr commented 2 weeks ago

Local upgraded postgres 16 server tests for following repos completed successfully:

himeshr commented 5 days ago

https://drive.google.com/file/d/1cUwnxv5to-mFdmpK3DJQxhS1Dt0fkDCZ/view?usp=sharing

himeshr commented 5 days ago

Notes:

himeshr commented 3 days ago

Knowledge articles:

https://www.baeldung.com/linux/local-domain-redirection#modifyingetchosts https://www.jasani.org/posts/2014/docker-now-supports-adding-host-mappings/

himeshr commented 2 days ago

Reporting Green servers pointing to Postgres 16 DB:

https://test-reporting-superset.avniproject.org/superset/welcome/ https://reporting-green.avniproject.org/auth/login?redirect=%2F https://reporting-jasper-green.avniproject.org/jasperserver/login.html

dinesh2096 commented 2 days ago

Done testing for metabase and superset