iconara / cql-rb

Cassandra CQL 3 binary protocol driver for Ruby
106 stars 31 forks source link

Make it possible to turn off peer discovery #106

Closed iconara closed 10 years ago

iconara commented 10 years ago

I think this should be expanded a bit. The original use case for this was a user who wanted to colocate applications with C* nodes and have those applications only talk to the local node. However, there are other use cases where you want more fine grained control over which nodes are connected to and which are not. The driver already contains a basic strategy for filtering the peers (if it's in the same DC as any of the seeds it's ok), this feature could be expanded to make it possible to pass in your own strategies.

iconara commented 10 years ago

I defer this to the new driver.