Multi node EmbeddedCassandra

41 views
Skip to first unread message

Simon1911

unread,
Feb 18, 2015, 10:24:05 AM2/18/15
to astyanax-cas...@googlegroups.com
Does Astyanax EmbeddedCassandra support multi node clusters? If not, are there any existing alternatives? Looking at the template cassandra yaml file that EmbeddedCassandra uses, it doesn't look like this is the case. Am I missing anything?

Thanks in advance!
Simon

Nate McCall

unread,
Feb 20, 2015, 10:19:19 PM2/20/15
to Simon1911, astyanax-cas...@googlegroups.com
This is do-able by forking the process. The cassandra-maven-plugin works this way when you define a cluster, but it's a bit out of date:

There are also these options which may not be as quick and dirty, but will result in something significantly more useful:

Using CCM and Runtime.exec to call out to such: 
- CCM is a good tool to get familiar with in general https://github.com/pcmanus/ccm

Vagrant, chef and a little bit of ruby foo will get you up to a 5 node cluster on a local private network: https://gist.github.com/zznate/578bc2bbd48cd40bf99e 
- uses a slightly modified version of the excellent https://github.com/michaelklishin/cassandra-chef-cookbook 
- assumes some chef foo and that you have Berkshelf managing your dependencies 
- Bonus: you can hand this off to jenkins for air-gapped cluster testing via the Vagrant plugin for such

I prefer the vagrant approach as it more closely simulates a network then the local port mangling of CCM. I also tend to run a monitoring Vagrant node with Grafana and Riemann along side this setup as well, so having the nodes think they are different machines let's me test my monitoring plumbing in a more realistic setting at the same time. 

--
You received this message because you are subscribed to the Google Groups "Astyanax Cassandra Client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astyanax-cassandra...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------
Nate McCall
Austin, TX
@zznate

Co-Founder & Sr. Technical Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com

Nate McCall

unread,
Feb 20, 2015, 10:38:08 PM2/20/15
to Simon1911, astyanax-cas...@googlegroups.com
Cleaned-up+syntaxed version of the Vagrant file:
Reply all
Reply to author
Forward
0 new messages