Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#26004] Make load-balance property configurable #171

Conversation

Sumukh-Phalgaonkar
Copy link

Description

Currently the load-balance property in connection URL is hardcoded to true for Multi host pattern. We do not mention any value to this property for single host pattern and as a result it always defaults to false.

This PR makes this property configurable via a connector config. A new connector config yb.load.balance.connections has been introduced which determines the value of load-balance property in the connection URL. When set to true, the driver fetches and maintains a list of nodes from the given endpoint (even when a single hostname is provided in the config) in the universe and distributes the connections equally across these nodes.

The default value of yb.load.balance.connections is true. We may want to set this to false while testing scenarios where we want to have imbalance of replication connections (walsenders) across nodes.

Testing

Manually tested out by toggling the values of this config and providing single host name in the connector config with a 3 node universe.

@Sumukh-Phalgaonkar Sumukh-Phalgaonkar merged commit e68ae92 into yugabyte:ybdb-debezium-2.5.2 Feb 14, 2025
1 check passed
@Sumukh-Phalgaonkar Sumukh-Phalgaonkar deleted the make-load-balance-configurable branch February 14, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants