You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by David Boxenhorn <da...@lookin2.com> on 2010/06/03 10:29:07 UTC

Cassandra in the cloud

We want to try out Cassandra in the cloud. Any recommendations? Comments?

Should we use Amazon? Rackspace? Something else?

Re: Cassandra in the cloud

Posted by David Boxenhorn <da...@lookin2.com>.
Thanks everybody. This your advice will be carefully considered in our
decision making.

On Fri, Jun 4, 2010 at 1:46 AM, Ben Standefer <be...@simplegeo.com> wrote:

> Mike, yep, there are a lot of benchmarks proving it (plus it just makes
> sense)
>
> http://stu.mp/2009/12/disk-io-and-throughput-benchmarks-on-amazons-ec2.html
>
> http://www.mysqlperformanceblog.com/2009/08/06/ec2ebs-single-and-raid-volumes-io-bencmark/
> http://orion.heroku.com/past/2009/7/29/io_performance_on_ebs/
>
> -Ben Standefer
>
>
> On Thu, Jun 3, 2010 at 4:41 PM, Mike Subelsky <mi...@subelsky.com> wrote:
> > Ben,
> >
> > thanks for that, we may try that.  I did find an AWS forum tidbit from
> > two years ago:
> >
> > "4 ephemeral stores striped together can give significantly higher
> > throughput for sequential writes than EBS."
> >
> >
> http://developer.amazonwebservices.com/connect/thread.jspa?messageID=125197&#125197
> >
> > -Mike
> >
> > On Thu, Jun 3, 2010 at 5:57 PM, Ben Standefer <be...@simplegeo.com> wrote:
> >> The commit log and data directory are on the same mounted directory
> >> structure (the 2 RAID 0 striped ephemeral disks) rather than using 1
> >> of the ephemeral disks for the data and 1 of the ephemeral disks for
> >> the data directory.  While it's usually advised that for disk
> >> utilization reasons you keep the commit logs and data directory on
> >> separate disks, our RAID0 configuration gives us much more space for
> >> the data directory without having to mess with EBSes.  We've found it
> >> to be fine for now.
> >>
> >> I see how my XFS snapshots reference was confusing.  Our plan is to
> >> have a single AZ use EBSes for the data directory so that we can more
> >> easily snapshot our data (trusting that our AZ-aware EndPointSnitch),
> >> while other AZs will continue ephemeral drives.
> >>
> >> -Ben Standefer
> >>
> >>
> >> On Thu, Jun 3, 2010 at 1:26 PM, Mike Subelsky <mi...@subelsky.com>
> wrote:
> >>> Ben,
> >>>
> >>> do you just keep the commit log on the ephemeral drive?  Or data and
> >>> commit? (I was confused by your reference to XFS and snapshots -- I
> >>> assume you keep data on the XFS drive)
> >>>
> >>> -Mike
> >>>
> >>> On Thu, Jun 3, 2010 at 2:29 PM, Ben Standefer <be...@simplegeo.com>
> wrote:
> >>>> We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
> >>>> the ephemeral drives to achieve better I/O and have machines in
> >>>> multiple Availability Zones with a custom EndPointSnitch that
> >>>> replicates the data between AZs for high availability (to be
> >>>> open-sourced/contributed at some point).
> >>>>
> >>>> Using XFS as described here
> >>>>
> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
> >>>> also makes it very easy to snapshot your cluster to S3.
> >>>>
> >>>> We've had no real problems with EC2 and Cassandra, it's been great.
> >>>>
> >>>> -Ben Standefer
> >>>>
> >>>>
> >>>> On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com>
> wrote:
> >>>>> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
> >>>>>> We want to try out Cassandra in the cloud. Any recommendations?
> >>>>>> Comments?
> >>>>>>
> >>>>>> Should we use Amazon? Rackspace? Something else?
> >>>>>
> >>>>> I personally haven't used Cassandra on EC2, but others have reported
> >>>>> significantly better disk IO, (and hence, better performance), with
> >>>>> Rackspace's Cloud Servers.
> >>>>>
> >>>>> Full disclosure though, I work for Rackspace. :)
> >>>>>
> >>>>> --
> >>>>> Eric Evans
> >>>>> eevans@rackspace.com
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Mike Subelsky
> >>> oib.com // ignitebaltimore.com // subelsky.com
> >>> @subelsky // (410) 929-4022
> >>>
> >>
> >
> >
> >
> > --
> > Mike Subelsky
> > oib.com // ignitebaltimore.com // subelsky.com
> > @subelsky
> >
>

Re: Cassandra in the cloud

Posted by Ben Standefer <be...@simplegeo.com>.
Mike, yep, there are a lot of benchmarks proving it (plus it just makes sense)

http://stu.mp/2009/12/disk-io-and-throughput-benchmarks-on-amazons-ec2.html
http://www.mysqlperformanceblog.com/2009/08/06/ec2ebs-single-and-raid-volumes-io-bencmark/
http://orion.heroku.com/past/2009/7/29/io_performance_on_ebs/

-Ben Standefer


On Thu, Jun 3, 2010 at 4:41 PM, Mike Subelsky <mi...@subelsky.com> wrote:
> Ben,
>
> thanks for that, we may try that.  I did find an AWS forum tidbit from
> two years ago:
>
> "4 ephemeral stores striped together can give significantly higher
> throughput for sequential writes than EBS."
>
> http://developer.amazonwebservices.com/connect/thread.jspa?messageID=125197&#125197
>
> -Mike
>
> On Thu, Jun 3, 2010 at 5:57 PM, Ben Standefer <be...@simplegeo.com> wrote:
>> The commit log and data directory are on the same mounted directory
>> structure (the 2 RAID 0 striped ephemeral disks) rather than using 1
>> of the ephemeral disks for the data and 1 of the ephemeral disks for
>> the data directory.  While it's usually advised that for disk
>> utilization reasons you keep the commit logs and data directory on
>> separate disks, our RAID0 configuration gives us much more space for
>> the data directory without having to mess with EBSes.  We've found it
>> to be fine for now.
>>
>> I see how my XFS snapshots reference was confusing.  Our plan is to
>> have a single AZ use EBSes for the data directory so that we can more
>> easily snapshot our data (trusting that our AZ-aware EndPointSnitch),
>> while other AZs will continue ephemeral drives.
>>
>> -Ben Standefer
>>
>>
>> On Thu, Jun 3, 2010 at 1:26 PM, Mike Subelsky <mi...@subelsky.com> wrote:
>>> Ben,
>>>
>>> do you just keep the commit log on the ephemeral drive?  Or data and
>>> commit? (I was confused by your reference to XFS and snapshots -- I
>>> assume you keep data on the XFS drive)
>>>
>>> -Mike
>>>
>>> On Thu, Jun 3, 2010 at 2:29 PM, Ben Standefer <be...@simplegeo.com> wrote:
>>>> We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
>>>> the ephemeral drives to achieve better I/O and have machines in
>>>> multiple Availability Zones with a custom EndPointSnitch that
>>>> replicates the data between AZs for high availability (to be
>>>> open-sourced/contributed at some point).
>>>>
>>>> Using XFS as described here
>>>> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
>>>> also makes it very easy to snapshot your cluster to S3.
>>>>
>>>> We've had no real problems with EC2 and Cassandra, it's been great.
>>>>
>>>> -Ben Standefer
>>>>
>>>>
>>>> On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com> wrote:
>>>>> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
>>>>>> We want to try out Cassandra in the cloud. Any recommendations?
>>>>>> Comments?
>>>>>>
>>>>>> Should we use Amazon? Rackspace? Something else?
>>>>>
>>>>> I personally haven't used Cassandra on EC2, but others have reported
>>>>> significantly better disk IO, (and hence, better performance), with
>>>>> Rackspace's Cloud Servers.
>>>>>
>>>>> Full disclosure though, I work for Rackspace. :)
>>>>>
>>>>> --
>>>>> Eric Evans
>>>>> eevans@rackspace.com
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Mike Subelsky
>>> oib.com // ignitebaltimore.com // subelsky.com
>>> @subelsky // (410) 929-4022
>>>
>>
>
>
>
> --
> Mike Subelsky
> oib.com // ignitebaltimore.com // subelsky.com
> @subelsky
>

Re: Cassandra in the cloud

Posted by Mike Subelsky <mi...@subelsky.com>.
Ben,

thanks for that, we may try that.  I did find an AWS forum tidbit from
two years ago:

"4 ephemeral stores striped together can give significantly higher
throughput for sequential writes than EBS."

http://developer.amazonwebservices.com/connect/thread.jspa?messageID=125197&#125197

-Mike

On Thu, Jun 3, 2010 at 5:57 PM, Ben Standefer <be...@simplegeo.com> wrote:
> The commit log and data directory are on the same mounted directory
> structure (the 2 RAID 0 striped ephemeral disks) rather than using 1
> of the ephemeral disks for the data and 1 of the ephemeral disks for
> the data directory.  While it's usually advised that for disk
> utilization reasons you keep the commit logs and data directory on
> separate disks, our RAID0 configuration gives us much more space for
> the data directory without having to mess with EBSes.  We've found it
> to be fine for now.
>
> I see how my XFS snapshots reference was confusing.  Our plan is to
> have a single AZ use EBSes for the data directory so that we can more
> easily snapshot our data (trusting that our AZ-aware EndPointSnitch),
> while other AZs will continue ephemeral drives.
>
> -Ben Standefer
>
>
> On Thu, Jun 3, 2010 at 1:26 PM, Mike Subelsky <mi...@subelsky.com> wrote:
>> Ben,
>>
>> do you just keep the commit log on the ephemeral drive?  Or data and
>> commit? (I was confused by your reference to XFS and snapshots -- I
>> assume you keep data on the XFS drive)
>>
>> -Mike
>>
>> On Thu, Jun 3, 2010 at 2:29 PM, Ben Standefer <be...@simplegeo.com> wrote:
>>> We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
>>> the ephemeral drives to achieve better I/O and have machines in
>>> multiple Availability Zones with a custom EndPointSnitch that
>>> replicates the data between AZs for high availability (to be
>>> open-sourced/contributed at some point).
>>>
>>> Using XFS as described here
>>> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
>>> also makes it very easy to snapshot your cluster to S3.
>>>
>>> We've had no real problems with EC2 and Cassandra, it's been great.
>>>
>>> -Ben Standefer
>>>
>>>
>>> On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com> wrote:
>>>> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
>>>>> We want to try out Cassandra in the cloud. Any recommendations?
>>>>> Comments?
>>>>>
>>>>> Should we use Amazon? Rackspace? Something else?
>>>>
>>>> I personally haven't used Cassandra on EC2, but others have reported
>>>> significantly better disk IO, (and hence, better performance), with
>>>> Rackspace's Cloud Servers.
>>>>
>>>> Full disclosure though, I work for Rackspace. :)
>>>>
>>>> --
>>>> Eric Evans
>>>> eevans@rackspace.com
>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Mike Subelsky
>> oib.com // ignitebaltimore.com // subelsky.com
>> @subelsky // (410) 929-4022
>>
>



-- 
Mike Subelsky
oib.com // ignitebaltimore.com // subelsky.com
@subelsky

Re: Cassandra in the cloud

Posted by Ben Standefer <be...@simplegeo.com>.
The commit log and data directory are on the same mounted directory
structure (the 2 RAID 0 striped ephemeral disks) rather than using 1
of the ephemeral disks for the data and 1 of the ephemeral disks for
the data directory.  While it's usually advised that for disk
utilization reasons you keep the commit logs and data directory on
separate disks, our RAID0 configuration gives us much more space for
the data directory without having to mess with EBSes.  We've found it
to be fine for now.

I see how my XFS snapshots reference was confusing.  Our plan is to
have a single AZ use EBSes for the data directory so that we can more
easily snapshot our data (trusting that our AZ-aware EndPointSnitch),
while other AZs will continue ephemeral drives.

-Ben Standefer


On Thu, Jun 3, 2010 at 1:26 PM, Mike Subelsky <mi...@subelsky.com> wrote:
> Ben,
>
> do you just keep the commit log on the ephemeral drive?  Or data and
> commit? (I was confused by your reference to XFS and snapshots -- I
> assume you keep data on the XFS drive)
>
> -Mike
>
> On Thu, Jun 3, 2010 at 2:29 PM, Ben Standefer <be...@simplegeo.com> wrote:
>> We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
>> the ephemeral drives to achieve better I/O and have machines in
>> multiple Availability Zones with a custom EndPointSnitch that
>> replicates the data between AZs for high availability (to be
>> open-sourced/contributed at some point).
>>
>> Using XFS as described here
>> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
>> also makes it very easy to snapshot your cluster to S3.
>>
>> We've had no real problems with EC2 and Cassandra, it's been great.
>>
>> -Ben Standefer
>>
>>
>> On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com> wrote:
>>> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
>>>> We want to try out Cassandra in the cloud. Any recommendations?
>>>> Comments?
>>>>
>>>> Should we use Amazon? Rackspace? Something else?
>>>
>>> I personally haven't used Cassandra on EC2, but others have reported
>>> significantly better disk IO, (and hence, better performance), with
>>> Rackspace's Cloud Servers.
>>>
>>> Full disclosure though, I work for Rackspace. :)
>>>
>>> --
>>> Eric Evans
>>> eevans@rackspace.com
>>>
>>>
>>
>
>
>
> --
> Mike Subelsky
> oib.com // ignitebaltimore.com // subelsky.com
> @subelsky // (410) 929-4022
>

Re: Cassandra in the cloud

Posted by Mike Subelsky <mi...@subelsky.com>.
Ben,

do you just keep the commit log on the ephemeral drive?  Or data and
commit? (I was confused by your reference to XFS and snapshots -- I
assume you keep data on the XFS drive)

-Mike

On Thu, Jun 3, 2010 at 2:29 PM, Ben Standefer <be...@simplegeo.com> wrote:
> We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
> the ephemeral drives to achieve better I/O and have machines in
> multiple Availability Zones with a custom EndPointSnitch that
> replicates the data between AZs for high availability (to be
> open-sourced/contributed at some point).
>
> Using XFS as described here
> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
> also makes it very easy to snapshot your cluster to S3.
>
> We've had no real problems with EC2 and Cassandra, it's been great.
>
> -Ben Standefer
>
>
> On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com> wrote:
>> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
>>> We want to try out Cassandra in the cloud. Any recommendations?
>>> Comments?
>>>
>>> Should we use Amazon? Rackspace? Something else?
>>
>> I personally haven't used Cassandra on EC2, but others have reported
>> significantly better disk IO, (and hence, better performance), with
>> Rackspace's Cloud Servers.
>>
>> Full disclosure though, I work for Rackspace. :)
>>
>> --
>> Eric Evans
>> eevans@rackspace.com
>>
>>
>



-- 
Mike Subelsky
oib.com // ignitebaltimore.com // subelsky.com
@subelsky // (410) 929-4022

Re: Cassandra in the cloud

Posted by Ben Standefer <be...@simplegeo.com>.
We're using Cassandra on AWS at SimpleGeo.  We software RAID 0 stripe
the ephemeral drives to achieve better I/O and have machines in
multiple Availability Zones with a custom EndPointSnitch that
replicates the data between AZs for high availability (to be
open-sourced/contributed at some point).

Using XFS as described here
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663
also makes it very easy to snapshot your cluster to S3.

We've had no real problems with EC2 and Cassandra, it's been great.

-Ben Standefer


On Thu, Jun 3, 2010 at 11:51 AM, Eric Evans <ee...@rackspace.com> wrote:
> On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
>> We want to try out Cassandra in the cloud. Any recommendations?
>> Comments?
>>
>> Should we use Amazon? Rackspace? Something else?
>
> I personally haven't used Cassandra on EC2, but others have reported
> significantly better disk IO, (and hence, better performance), with
> Rackspace's Cloud Servers.
>
> Full disclosure though, I work for Rackspace. :)
>
> --
> Eric Evans
> eevans@rackspace.com
>
>

Re: Cassandra in the cloud

Posted by Eric Evans <ee...@rackspace.com>.
On Thu, 2010-06-03 at 11:29 +0300, David Boxenhorn wrote:
> We want to try out Cassandra in the cloud. Any recommendations?
> Comments?
> 
> Should we use Amazon? Rackspace? Something else? 

I personally haven't used Cassandra on EC2, but others have reported
significantly better disk IO, (and hence, better performance), with
Rackspace's Cloud Servers.

Full disclosure though, I work for Rackspace. :)

-- 
Eric Evans
eevans@rackspace.com


Re: Cassandra in the cloud

Posted by David King <dk...@ketralnis.com>.
> We want to try out Cassandra in the cloud. Any recommendations? Comments?
> Should we use Amazon? Rackspace? Something else? 

I'm using it on Amazon with mostly success. I'd recommend increasing Phi from 8 to 10, use the 4-core/15gb instances to start, and if you plan to be really heavy on reads to use software RAID of striped EBS volumes instead of just the straight-up EBS volumes.