Skip to content

Commit

Permalink
Fix typo in wal_sender_timeout recommendation (#3621)
Browse files Browse the repository at this point in the history
Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
  • Loading branch information
arajkumar authored Nov 26, 2024
1 parent 84ef930 commit 6faee36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions _partials/_migrate_live_migrate_faq_all.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ This rare phenomenon may happen when:
following GUCs to the recommended values on the source RDS instance.

```shell
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_count=60'
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_idle=10'
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_interval=10'
psql -X -d $SOURCE -c 'alter system set wal_sender_timeout=30m'
psql -X -d $SOURCE -c "alter system set tcp_keepalives_count=60"
psql -X -d $SOURCE -c "alter system set tcp_keepalives_idle=10"
psql -X -d $SOURCE -c "alter system set tcp_keepalives_interval=10"
psql -X -d $SOURCE -c "alter system set wal_sender_timeout='30min'"
```

For more information, see [https://github.com/dimitri/pgcopydb/issues/773#issuecomment-2139093365](https://github.com/dimitri/pgcopydb/issues/773#issuecomment-2139093365)
Expand Down
10 changes: 5 additions & 5 deletions _partials/_migrate_live_tune_source_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ a managed service, follow the instructions in the `From MST` tab on this page.

1. **Tune system messaging**
```shell
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_count=60'
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_idle=10'
psql -X -d $SOURCE -c 'alter system set tcp_keepalives_interval=10'
psql -X -d $SOURCE -c 'alter system set wal_sender_timeout=30m'
psql -X -d $SOURCE -c "alter system set tcp_keepalives_count=60"
psql -X -d $SOURCE -c "alter system set tcp_keepalives_idle=10"
psql -X -d $SOURCE -c "alter system set tcp_keepalives_interval=10"
psql -X -d $SOURCE -c "alter system set wal_sender_timeout='30min'"
```

1. **Restart the source database**
Expand All @@ -33,4 +33,4 @@ a managed service, follow the instructions in the `From MST` tab on this page.

<EnableReplication />

[install-wal2json]: https://github.com/eulerto/wal2json
[install-wal2json]: https://github.com/eulerto/wal2json
2 changes: 1 addition & 1 deletion _partials/_migrate_live_tune_source_database_awsrds.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Updating parameters on a PostgreSQL instance will cause an outage. Choose a time
- `tcp_keepalives_count` set to `60`: the number of messages that can be lost before the client is considered dead.
- `tcp_keepalives_idle` set to `10`: the amount of time with no network activity before the IS sends a TCP keepalive message to the client.
- `tcp_keepalives_interval` set to `10`: the amount of time before a unacknowledged TCP keepalive message is restransmitted.
- `wal_sender_timeout` set to `30m`: the maximum time to wait for WAL replication.
- `wal_sender_timeout` set to `30min`: the maximum time to wait for WAL replication.


1. In RDS, navigate back to your [databases][databases], select the RDS instance to migrate and click `Modify`.
Expand Down

0 comments on commit 6faee36

Please sign in to comment.