Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

v1.1.0.pre1

Pre-release
Pre-release
Compare
Choose a tag to compare
@iconara iconara released this 24 Jul 20:03
· 495 commits to master since this release

Automatic peer discovery!

This release changes the semantics of Cql::Client.connect:

  • The :host option is deprecated in favour of :hosts (which takes a list instead of a comma separated string).
  • All nodes given in :hosts don't have to be up, as long as one node is up the connection will succeed.
  • Once the nodes in :hosts are connected the rest of the nodes in the cluster will be looked up and connected to (only nodes in the same data centers as the seed nodes will be used).
  • Previously it was possible to connect multiple times to the same node by specifying that node's hostname multiple times in :host. This "feature" has been removed -- and even though this is a non-backwards compatible change and should require a major version bump it will be included in a minor version release because it was undocumented and accidental. Multiple connections to the same node is a desirable feature, but will be added later and be more obvious.