Skip to content

Commit

Permalink
Live-migration: Improve connection calculation (#3556)
Browse files Browse the repository at this point in the history
Signed-off-by: Arunprasad Rajkumar <[email protected]>
  • Loading branch information
arajkumar authored Nov 6, 2024
1 parent a96d7c0 commit 9590e09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _partials/_migrate_live_setup_environment_target_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
1. In [Timescale Console][tsc-portal], select `Database parameters` and search for `max_connections`.
2. Hover the mouse over the value column, click the pencil icon, then change the value.

By default, for each table, Live-migration consumes 10 connections to the source database and 20
By default, for each table, Live-migration consumes 10 connections to the source database and 28
connections to your target Timescale Cloud service.

- Source: `2` + (value of `--table-jobs`). The default value is `10`
- Target: `4` + (`2` * (value of `--table-jobs`)) + (value of `--index-jobs`). The default value is `20`.
- Source: `2` + (value of `--table-jobs`, default value is `8`) = 10
- Target: `4` + (`2` * (value of `--table-jobs`, default value is `8`)) + (value of `--index-jobs`, default value is `8`) = 28

Set the `--table-jobs` and `--index-jobs` flags to reduce the number of connection when you
[run the migrate command](#migrate-your-data-then-start-downtime).
Expand All @@ -28,4 +28,4 @@
[modify-parameters]: /use-timescale/:currentVersion/configuration/customize-configuration/#modify-basic-parameters
[mst-portal]: https://portal.managed.timescale.com/login
[tsc-portal]: https://console.cloud.timescale.com/
[configure-instance-parameters]: /use-timescale/:currentVersion/configuration/customize-configuration/#configure-database-parameters
[configure-instance-parameters]: /use-timescale/:currentVersion/configuration/customize-configuration/#configure-database-parameters

0 comments on commit 9590e09

Please sign in to comment.