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

LBP: cpp-driver uses first contact point's DC as local DC by default #204

Open
muzarski opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@muzarski
Copy link
Collaborator

Here is a part of the documentation from cpp-driver (cass_cluster_set_load_balance_dc_aware function):

 * Configures the cluster to use DC-aware load balancing.
 * For each query, all live nodes in a primary 'local' DC are tried first,
 * followed by any node from other DCs.
 *
 * <b>Note:</b> This is the default, and does not need to be called unless
 * switching an existing from another policy or changing settings.
 * Without further configuration, a default local_dc is chosen from the
 * first connected contact point, and no remote hosts are considered in
 * query plans. If relying on this mechanism, be sure to use only contact
 * points from the local DC.

We should discuss it here, whether we want to mimic such behaviour in cpp-rust-driver.

@muzarski muzarski mentioned this issue Nov 19, 2024
4 tasks
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

No branches or pull requests

1 participant