Connections are not balanced across readers mapped to a RDS Custom endpoint #1489
Replies: 1 comment
-
Hi @KamleshAtTray, thank you for opening this discussion. The driver does not currently support the behavior you are describing according to your constraints. Using the read/write plugin, connecting to the writer, and calling setReadOnly(true) should give you the load balancing you are looking for, but you mentioned you cannot use this approach; can you share more details about why this isn't feasible for you? Note 1: I see you are passing Note 2: The custom endpoint plugin does not provide load balancing functionality on its own. The primary purpose of the custom endpoint plugin is to ensure that hosts selected by the failover and/or read/write plugin are part of the custom endpoint in use.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We added 3 readers to our RDS cluster for reporting queries, created a custom endpoint for them, and configured this endpoint in our datasource with:
customEndpoint plugin along with the loadBalancing, hostMonitoring, and failover plugins with relevant configs
Current Issue:
Connections aren't load balancing properly - all connections go to one reader instance, even under concurrent API load.
Key Constraints:
We cannot use the writer endpoint + setReadOnly approach
We maintain two separate reader groups (transactional reads vs reporting reads)
Questions:
The datasource configurations from the application -
Beta Was this translation helpful? Give feedback.
All reactions