You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by DE VITO Dominique <do...@thalesgroup.com> on 2011/12/01 17:36:25 UTC
is there a "no disk storage" mode ?
Hi,
I want to use Cassandra for (fast) unit testing with a small number of data.
So, I imagined the Cassandra embedded server I plan to use would start faster and would be more portable (because no file path depending on OS), without disk storage mode (so, diskless if you want).
Is there some "no disk storage mode" for Cassandra ?
Thanks.
Regards,
Dominique
Re: is there a "no disk storage" mode ?
Posted by Deno Vichas <de...@syncopated.net>.
if you're in java land there's a maven plugin -
http://mojo.codehaus.org/cassandra-maven-plugin/
On 12/1/2011 12:13 PM, Tom van den Berge wrote:
> Hi Dominique,
>
> I don't think there is a way to run cassandra without disk storage.
> But running it embedded can be very useful for unit testing. I'm using
> cassandra-unit (https://github.com/jsevellec/cassandra-unit) to
> integrate it in my tests. You don't need to configure any file paths;
> it works fine out of the box.
>
> I've set it up to drop and recreate my keyspace before each test case,
> and even then it performs quite good.
>
> Good luck,
> Tom
>
>
> On 12/1/11 5:36 PM, DE VITO Dominique wrote:
>>
>> Hi,
>>
>> I want to use Cassandra for (fast) unit testing with a small number
>> of data.
>>
>> So, I imagined the Cassandra embedded server I plan to use would
>> start faster and would be more portable (because no file path
>> depending on OS), without disk storage mode (so, diskless if you want).
>>
>> Is there some "no disk storage mode" for Cassandra ?
>>
>> Thanks.
>>
>> Regards,
>>
>> Dominique
>>
>
>
Re: is there a "no disk storage" mode ?
Posted by Tom van den Berge <to...@drillster.com>.
Hi Dominique,
I don't think there is a way to run cassandra without disk storage. But
running it embedded can be very useful for unit testing. I'm using
cassandra-unit (https://github.com/jsevellec/cassandra-unit) to
integrate it in my tests. You don't need to configure any file paths; it
works fine out of the box.
I've set it up to drop and recreate my keyspace before each test case,
and even then it performs quite good.
Good luck,
Tom
On 12/1/11 5:36 PM, DE VITO Dominique wrote:
>
> Hi,
>
> I want to use Cassandra for (fast) unit testing with a small number of
> data.
>
> So, I imagined the Cassandra embedded server I plan to use would start
> faster and would be more portable (because no file path depending on
> OS), without disk storage mode (so, diskless if you want).
>
> Is there some "no disk storage mode" for Cassandra ?
>
> Thanks.
>
> Regards,
>
> Dominique
>
Re: is there a "no disk storage" mode ?
Posted by huyle <hu...@springpartners.com>.
I am not sure of no disk option, but as for fast unit testing, you can try
RAM disk for storage.
Huy
--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/is-there-a-no-disk-storage-mode-tp7051192p7051728.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.