We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93fc6b1 commit 87acba1Copy full SHA for 87acba1
3 files changed
docs/ref/pg_autoctl_create_postgres.rst
@@ -40,6 +40,7 @@ registered too, and is known to be healthy).
40
--server-cert set the Postgres ssl_cert_file to that file path
41
--candidate-priority priority of the node to be promoted to become primary
42
--replication-quorum true if node participates in write quorum
43
+ --maximum-backup-rate maximum transfer rate of data transferred from the server during initial sync
44
45
Description
46
-----------
@@ -261,6 +262,12 @@ The following options are available to ``pg_autoctl create postgres``:
261
262
value (either ``true`` or ``false``) at node registration on the monitor.
263
Defaults to ``true``, which enables synchronous replication.
264
265
+--maximum-backup-rate
266
+
267
+ Sets the maximum transfer rate of data transferred from the server during
268
+ initial sync. This is used by ``pg_basebackup``.
269
+ Defaults to ``100M``.
270
271
--run
272
273
Immediately run the ``pg_autoctl`` service after having created this node.
src/bin/pg_autoctl/cli_common.c
@@ -73,6 +73,7 @@ int monitorDisabledNodeId = -1;
73
* { "citus-cluster", required_argument, NULL, 'Z' },
74
* { "candidate-priority", required_argument, NULL, 'P'},
75
* { "replication-quorum", required_argument, NULL, 'r'},
76
+ * { "maximum-backup-rate", required_argument, NULL, 'R' },
77
* { "help", no_argument, NULL, 0 },
78
* { "run", no_argument, NULL, 'x' },
79
* { "ssl-self-signed", no_argument, NULL, 's' },
@@ -389,6 +390,16 @@ cli_common_keeper_getopts(int argc, char **argv,
389
390
break;
391
}
392
393
+ case 'R':
394
+ {
395
+ /* { "maximum-backup-rate", required_argument, NULL, 'R' } */
396
+ strlcpy(LocalOptionConfig.maximum_backup_rate, optarg,
397
+ MAXIMUM_BACKUP_RATE_LEN);
398
+ log_trace("--maximum-backup-rate %s",
399
+ LocalOptionConfig.maximum_backup_rate);
400
+ break;
401
+ }
402
403
case 'V':
404
{
405
/* keeper_cli_print_version prints version and exits. */
src/bin/pg_autoctl/cli_create_node.c
@@ -91,7 +91,8 @@ CommandLine create_postgres_command =
91
" --pg-hba-lan edit pg_hba.conf rules for --dbname in detected LAN\n"
92
KEEPER_CLI_SSL_OPTIONS
93
" --candidate-priority priority of the node to be promoted to become primary\n"
94
- " --replication-quorum true if node participates in write quorum\n",
+ " --replication-quorum true if node participates in write quorum\n"
95
+ " --maximum-backup-rate maximum transfer rate of data transferred from the server during initial sync\n",
96
cli_create_postgres_getopts,
97
cli_create_postgres);
98
@@ -272,6 +273,7 @@ cli_create_postgres_getopts(int argc, char **argv)
{ "help", no_argument, NULL, 'h' },
274
{ "candidate-priority", required_argument, NULL, 'P' },
275
{ "replication-quorum", required_argument, NULL, 'r' },
276
+ { "maximum-backup-rate", required_argument, NULL, 'R' },
277
{ "run", no_argument, NULL, 'x' },
278
{ "no-ssl", no_argument, NULL, 'N' },
279
{ "ssl-self-signed", no_argument, NULL, 's' },
0 commit comments