Skip to content

Commit

Permalink
fix: precheck parameter value guidelines updatesd for #267
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeeva committed Sep 18, 2023
1 parent b56bcf9 commit 9fd5bdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ Both your source and target database must satisfy the following requirements:
- All data to be migrated must be owned by a single login user.
- There must be a postgres superuser with a login in the database.
- Have the following parameters:
- `max_replication_slots` >= 20
- `max_worker_processes` >= 20
- `max_wal_senders` >= 20
- `shared_preload_libraries` must include both `pg_stat_statements` and `pglogical`. *NOTE:* You must ensure your destination database has all required extensions for your schema.
- `max_replication_slots` >= 2 (at least 2 for use by this tool, add more if other tools are using slots as well)
- `max_worker_processes` >= 2 (should be as high as your CPU count)
- `max_wal_senders` >= 10 (Postgres default is 10, should not be lower than this)
- `shared_preload_libraries` must include both `pg_stat_statements` and `pglogical`. _NOTE:_ You must ensure your destination database has all required extensions for your schema.
- If your db is on AWS RDS you must also set `rds.logical_replication = 1`

# Migration Steps
Expand Down
6 changes: 3 additions & 3 deletions pgbelt/cmd/preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ async def _print_prechecks(results: list[dict]) -> list[list]:
),
style(
r["max_replication_slots"],
"green" if int(r["max_replication_slots"]) >= 20 else "red",
"green" if int(r["max_replication_slots"]) >= 2 else "red",
),
style(
r["max_worker_processes"],
"green" if int(r["max_worker_processes"]) >= 20 else "red",
"green" if int(r["max_worker_processes"]) >= 2 else "red",
),
style(
r["max_wal_senders"],
"green" if int(r["max_wal_senders"]) >= 20 else "red",
"green" if int(r["max_wal_senders"]) >= 10 else "red",
),
style(
pg_stat_statements,
Expand Down

0 comments on commit 9fd5bdf

Please sign in to comment.