Jump to: navigation, search


< Trove
Revision as of 12:34, 15 September 2014 by Denis M. (talk | contribs) (Justification/Benefits)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Cassandra clustering


This spec describes Cassandra clustering feature development.

See more info about Cassandra itself at http://cassandra.apache.org/

See more info about Cassandra clusters at http://planetcassandra.org/blog/introduction-to-cassandra-clusters/

See more info about cluster deployment at http://pulasthisupun.blogspot.com/2013/12/setting-up-local-3-node-cassandra.html


There are alot overcloud projects that are requesting for NoSQL backend. This is perfect place to propose Trove as deployment tool, but before that we need to cover customer use cases with NoSQL deployment. From customer and maintainer point of view - Cassandra is the easiest to deploy-and-maintain datastore in the NoSQL eco-system.

Since Trove provides framework that allows to implement clustering for certain datastores, it would be great value-add for project to allow deployment of CassandraDB clusters through Trove.

Also, there are several projects, from OpenStack ecosystem, such as Ceilometer and MagnetoDB that may work with Cassandra as well. See

See more info at http://www.enterprisetech.com/2014/03/20/google-makes-cassandra-nosql-scream-compute-engine/


To implement cassandra clustering we need to add 3 new strategies:

  • API strategy implementation
  • Taskmanager implementation
  • Guestagent implementation

We need to add another one cluster task for adding node (existing "add shard" task might work but it would be nice to have consistent states for each datastore), for cassandra we need to add:

  • "Add node" cluster task


For Cassandra clustering we need to have next options:

  • cluster_support - Boolean
  • api_strategy - fully qualified class name of aAPI strategy implementation
  • taskmanager_strategy - fully qualified class name of a Taskmanager implementation
  • guestagent_strategy - fully qualified class name of a Guestagent implementation



Public API


CLI interface


ReST Part


Internal API


RPC API description


Guest Agent

According to base guestagent strategy we need to add next calls:

  • Name:
    • add_members
  • Type:
    • call
  • Payload:
    • members
      • a list of instances to join the ring.