You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--platform`| One of `aws`, `docker`, `bare`. | Defaults to `aws`. |
84
-
|`--location-names`| A space-separated list of location names. The number of active locations is equal to the number of names supplied, minus one for each of the witness-only location and the single-node location if they are requested.| A single location called "main" is used. |
85
-
|`--primary-location`| The location where the primary server will be. Must be a member of `location-names`. | The first listed location is used. |
86
-
|`--data-nodes-per-location`| A number from 1 upwards. In each location, one node will be configured to stream directly from the cluster's primary node, and the other nodes, if present, will stream from that one. | Defaults to 2. |
87
-
|`--witness-only-location`| A location name, must be a member of `location-names`. | No witness-only location is added. |
88
-
|`--single-node-location`| A location name, must be a member of `location-names`. | No single-node location is added. |
89
-
|`--enable-haproxy`|2 additional nodes will be added as a load balancer layer.<br/>Only supported with Patroni as the failover manager.| HAproxy nodes will not be added to the cluster. |
90
-
|`--enable-pgbouncer`| PgBouncer will be configured in the Postgres nodes to pool connections for the primary. | PgBouncer will not be configured in the cluster. |
91
-
|`--patroni-dcs`| Select the Distributed Configuration Store backend for patroni.<br/>Only option is `etcd` at this time. <br/>Only supported with Patroni as the failover manager. | Defaults to `etcd`. |
92
-
|`--efm-bind-by-hostname`| Enable efm to use hostnames instead of IP addresses to configure the cluster `bind.address`. | Defaults to use IP addresses |
106
+
| Parameter | Description | Behaviour if omitted |
|`--platform`| One of `aws`, `docker`, `bare`. | Defaults to `aws`. |
109
+
|`--location-names`| A space-separated list of location names. The number of locations is equal to the number of names supplied. | A single location called "main" is used. |
110
+
|`--primary-location`| The location where the primary server will be. Must be a member of `location-names`. | The first listed location is used. |
111
+
|`--data-nodes-per-location`| A number from 1 upwards. In each location, one node will be configured to stream directly from the cluster's primary node, and the other nodes, if present, will stream from that one. | Defaults to 2. |
112
+
|`--witness-only-location`| A location name, must be a member of `location-names`. This location will be populated with a single witness node only.| No witness-only location is added. |
113
+
|`--single-node-location`| A location name, must be a member of `location-names`. This location will be populated with a single data node only.| No single-node location is added. |
114
+
|`--enable-haproxy`|Two additional nodes will be added as a load balancer layer.<br/>Only supported with Patroni as the failover manager. | HAproxy nodes will not be added to the cluster. |
115
+
|`--enable-pgbouncer`| PgBouncer will be configured in the Postgres nodes to pool connections for the primary. | PgBouncer will not be configured in the cluster. |
116
+
|`--patroni-dcs`| Select the Distributed Configuration Store backend for patroni.<br/>Only option is `etcd` at this time. <br/>Only supported with Patroni as the failover manager. | Defaults to `etcd`. |
117
+
|`--efm-bind-by-hostname`| Enable efm to use hostnames instead of IP addresses to configure the cluster `bind.address`. | Defaults to use IP addresses |
|`--architecture` (`-a`) | Must be set to `Lightweight`|
50
+
| Postgres flavour and version (e.g. `--postgresql 15`) | A valid [flavour and version specifier](../tpaexec-configure/#postgres-flavour-and-version). |
|`--platform`| One of `aws`, `docker`, `bare`. | Defaults to `aws`. |
59
+
|`--location-names`| A space-separated list of location names. The number of locations is equal to the number of names supplied. | TPA will configure a single location with three data nodes. |
60
+
|`--add-proxy-nodes-per-location`| The number of proxy nodes in each location. | PGD-proxy will be installed on each data node. |
61
+
|`--bdr-database`| The name of the database to be used for replication. | Defaults to `bdrdb`. |
62
+
|`--enable-pgd-probes`| Enable http(s) api endpoints for pgd-proxy such as `health/is-ready` to allow probing proxy's health. | Disabled by default. |
63
+
|`--proxy-listen-port`| The port on which proxy nodes will route traffic to the write leader. | Defaults to 6432 |
64
+
|`--proxy-read-only-port`| The port on which proxy nodes will route read-only traffic to shadow nodes. | Defaults to 6433 |
65
+
66
+
<br/><br/>
67
+
68
+
### More detail about Lightweight configuration
69
+
70
+
A PGD Lightweight cluster comprises 2 locations, with a primary active location containing 2 nodes and a disaster recovery (dr) location with a single node.
71
+
72
+
Location names for the cluster are specified as
73
+
`--location-names primary dr`. A location represents an independent
74
+
data centre that provides a level of redundancy, in whatever way
75
+
this definition makes sense to your use case. For example, AWS
76
+
regions, your own data centres, or any other designation to identify
77
+
where your servers are hosted.
78
+
79
+
!!! Note for AWS users
80
+
81
+
If you are using TPA to provision an AWS cluster, the locations will
82
+
be mapped to separate availability zones within the `--region` you
83
+
specify.
84
+
You may specify multiple `--regions`, but TPA does not currently set
85
+
up VPC peering to allow instances in different regions to
86
+
communicate with each other. For a multi-region cluster, you will
87
+
need to set up VPC peering yourself.
88
+
89
+
By default, every data node (in every location) will also run PGD-Proxy
90
+
for connection routing. To create separate PGD-Proxy instances instead,
91
+
use `--add-proxy-nodes-per-location 3` (or however many proxies you want
92
+
to add).
93
+
94
+
Global routing will make every proxy route to a single write leader, elected amongst all available data nodes across all locations.
95
+
96
+
You may optionally specify `--bdr-database dbname` to set the name of
97
+
the database with BDR enabled (default: bdrdb).
98
+
99
+
You may optionally specify `--enable-pgd-probes [{http, https}]` to
100
+
enable http(s) api endpoints that will allow to easily probe proxy's health.
101
+
102
+
You may also specify any of the options described by
103
+
[`tpaexec help configure-options`](../tpaexec-configure/).
0 commit comments