Closed mahfuzak08 closed 5 years ago
The documentation provides samples for SimpleStrategy
and contactPoints
. I hope that should be fairly simple to extend to use NetworkTopologyStrategy
and multiple contact points like the following:
clientOptions: {
contactPoints: ['host1.example.com', 'host2.example.com', 'host3.example.com'],
keyspace: 'your_keyspace',
queryOptions: { consistency: models.consistencies.quorum }
},
ormOptions: {
defaultReplicationStrategy: {
class: 'NetworkTopologyStrategy',
dc1: 3,
dc2: 2
},
migration: 'safe'
}
Thank you so much.
How to set NetworkTopologyStrategy by using express-cassandra? Please give an example. Or, How to use multiple contact point { clientOptions: contactPoints: [ ], ...}...?