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
{{ message }}
Repository navigation
Commit 2acff9c
Browse filesBrowse the repository at this point in the historyBrowse files
GdbReadWriteSplittingPlugin.MissingHomeRegion=[GdbReadWriteSplittingPlugin] Unable to parse home region from endpoint '{}'. Please ensure you have set the 'gdb_rw_home_region' connection parameter.
429
429
GdbReadWriteSplittingPlugin.CantConnectWriterOutOfHomeRegion=[GdbReadWriteSplittingPlugin] Writer connection to '{}' is not allowed since it is out of home region '{}'.
430
-
GdbReadWriteSplittingPlugin.NoAvailableReadersInHomeRegion=[GdbReadWriteSplittingPlugin] No available reader nodes in home region '{}'.
430
+
GdbReadWriteSplittingPlugin.NoAvailableReadersInHomeRegion=[GdbReadWriteSplittingPlugin] No available reader hosts in home region '{}'.
GdbReadWriteSplittingPlugin.EnabledGwf=[GdbReadWriteSplittingPlugin] The current primary writer region is '{}' and is not within the home region. Keeping the current connection and letting Global Write Forwarding redirect writes to the primary region.
Copy file name to clipboardExpand all lines: docs/using-the-python-wrapper/using-plugins/UsingTheGdbReadWriteSplittingPlugin.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,7 @@ Unless otherwise stated, all recommendations, configurations, and code examples
8
8
9
9
## Loading the GDB Read/Write Splitting Plugin
10
10
11
-
The GDB Read/Write Splitting Plugin is not loaded by default. To load it, include `gdb_rw` in the [`plugins`](../UsingThePythonWrapper.md#connection-plugin-manager-parameters) connection parameter. If you want to load it alongside the failover and host monitoring plugins, the GDB Read/Write Splitting Plugin **must be listed before** these plugins in the plugin chain so that failover errors are processed correctly. The wrapper sorts plugins by default, but the relative ordering still matters when sorting is disabled.
12
-
11
+
The GDB Read/Write Splitting Plugin is not loaded by default. To load it, include `gdb_rw` in the [`plugins`](../UsingThePythonWrapper.md#connection-plugin-manager-parameters) connection parameter.
## Using the GDB Read/Write Splitting Plugin against non-GDB clusters
39
38
40
-
The GDB Read/Write Splitting Plugin can be used against Aurora and RDS clusters. However, since these cluster types are single-region, configuring a home region adds little value.
39
+
The GDB Read/Write Splitting Plugin can be used against Aurora and RDS clusters. However, since these cluster types are single-region, configuring a home region adds little value. Instead, we recommend using the [Read/Write Splitting Plugin](./UsingTheReadWriteSplittingPlugin.md).
41
40
42
41
## Configuration Parameters
43
42
44
-
| Parameter | Value | Required | Description | Default Value |
|`reader_host_selector_strategy`| String | No | The name of the strategy used to select a new reader host. For more information on the available reader selection strategies, see the [Read/Write Splitting Plugin](./UsingTheReadWriteSplittingPlugin.md#connection-strategies) docs. |`random`|
43
+
| Parameter | Value | Required | Description | Default Value |
|`reader_host_selector_strategy`| String | No | The name of the strategy used to select a new reader host. For more information on the available reader selection strategies, see the [Read/Write Splitting Plugin](./UsingTheReadWriteSplittingPlugin.md#connection-strategies) docs. |`random`|
47
46
|`gdb_rw_home_region`| String | If connecting using an IP address, a custom domain URL, a Global Database endpoint, or any other endpoint without a region: Yes<br><br>Otherwise: No | Defines the home region.<br><br>Examples: `us-west-2`, `us-east-1`.<br><br>If this parameter is omitted, the value is parsed from the connection URL. For regional cluster endpoints and instance endpoints, it is set to the region of the provided endpoint. If the endpoint has no region (for example, a Global Database endpoint or an IP address), the configuration parameter is mandatory. | For regional cluster endpoints and instance endpoints, it is set to the region of the provided endpoint.<br><br>Otherwise: `None`|
48
-
|`gdb_rw_restrict_writer_to_home_region`| Boolean | No | If set to `True`, prevents following or connecting to a writer node outside the defined home region. An exception will be raised when such a connection to a writer outside the home region is requested. |`True`|
47
+
|`gdb_rw_restrict_writer_to_home_region`| Boolean | No | If set to `True`, prevents following or connecting to a writer node outside the defined home region. An exception will be raised when a connection to a writer outside the home region is requested.|`True`|
49
48
|`gdb_rw_restrict_reader_to_home_region`| Boolean | No | If set to `True`, prevents connecting to a reader node outside the defined home region. If no reader nodes in the home region are available, an exception will be raised. |`True`|
50
49
|`gdb_enable_global_write_forwarding`| Boolean | No | If set to `True`, allows connections in the secondary region to forward write queries to the primary global region. This is useful when your home region is the secondary global region. This functionality requires [Global Write Forwarding](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database-write-forwarding.html) to be enabled on the cluster. |`False`|
0 commit comments