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
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,19 @@ You need the following permissions to run this module.
33
33
-**Databases for PostgreSQL** service
34
34
- `Editor` role access
35
35
<!-- END MODULE HOOK -->
36
+
37
+
## Read-only Replica considerations
38
+
39
+
-**There are additional considerations when setting the variables in the read-only-replica example.** Refer [configuring read-only replicas](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-read-only-replicas)
40
+
41
+
| Variable | Description |
42
+
|------|---------|
43
+
| <aname="input_region"></a> [region](#input\_region)| The read-only replica can exist in the same region as the source formation or in different one, enabling your data to be replicated across regions. |
44
+
| <aname="input_member_memory_mb"></a> [member\_memory\_mb](#input\_member\_memory\_mb)| The minimum RAM size of a read-only replica is 3 GB |
45
+
| <aname="input_member_disk_mb"></a> [member\_disk\_mb](#input\_member\_disk\_mb)| The minimum disk size of a read-only replica is 15 GB |
46
+
| <aname="input_member_cpu_count"></a> [member\_cpu\_count](#input\_member\_cpu\_count)| The minimum CPU allocation required for read-only replica is 9 |
47
+
| <aname="input_members"></a> [members](#input\_members)| A read-only replica is a deployment with single data member and does not have any internal high availability.|
48
+
36
49
<!-- BEGIN EXAMPLES HOOK -->
37
50
## Examples
38
51
@@ -41,6 +54,7 @@ You need the following permissions to run this module.
41
54
-[ Complete example with byok encryption, CBR rules and storing credentials in secrets manager](examples/complete)
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
46
60
## Requirements
@@ -82,6 +96,7 @@ You need the following permissions to run this module.
82
96
| <aname="input_pg_version"></a> [pg\_version](#input\_pg\_version)| Version of the postgresql instance |`string`|`null`| no |
83
97
| <aname="input_plan_validation"></a> [plan\_validation](#input\_plan\_validation)| Enable or disable validating the database parameters for postgres during the plan phase |`bool`|`true`| no |
84
98
| <aname="input_region"></a> [region](#input\_region)| The region postgresql is to be created on. The region must support BYOK if key\_protect\_key\_crn is used |`string`|`"us-south"`| no |
99
+
| <aname="input_remote_leader_crn"></a> [remote\_leader\_crn](#input\_remote\_leader\_crn)| The CRN of the leader database to make the replica(read-only) deployment. |`string`|`null`| no |
85
100
| <aname="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id)| The resource group ID where the postgresql will be created |`string`| n/a | yes |
86
101
| <aname="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags)| Optional list of tags to be added to created resources |`list(string)`|`[]`| no |
87
102
| <aname="input_service_credential_names"></a> [service\_credential\_names](#input\_service\_credential\_names)| Map of name, role for service credentials that you want to create for the database |`map(string)`|`{}`| no |
0 commit comments