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

Cassandra load balancing policies configuration #175

Open
deepiverma18 opened this issue Sep 21, 2018 · 1 comment
Open

Cassandra load balancing policies configuration #175

deepiverma18 opened this issue Sep 21, 2018 · 1 comment

Comments

@deepiverma18
Copy link

I am trying to find out the load balancing policies configuration using express-cassandra as we do in cassandra-driver

const CASSANDRA_LOADBALANCER_OPTIONS = {
"DCAwareRoundRobin": new cassandra.policies.loadBalancing.DCAwareRoundRobinPolicy(),
"LoadBalancer": new cassandra.policies.loadBalancing.LoadBalancingPolicy(),
"RoundRobin": new cassandra.policies.loadBalancing.RoundRobinPolicy(),
"TokenAware": new cassandra.policies.loadBalancing.TokenAwarePolicy(
new cassandra.policies.loadBalancing.RoundRobinPolicy())
};

Here cassandra is instance of cassandra-driver.

@amnporter
Copy link

How have you added the load balancing to the orm options?

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

2 participants