Skip to contentSkip to conversation

Hadoop on ceph

DISCUSSION Matt Weil 5 participants 9 messages Mar 15, 2012 – Mar 17, 2012

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Matt Weil
Quoted 1 line

http://ceph.newdream.net/wiki/Using_Hadoop_with_Ceph

What are the plans going forward.

Going forward we want to switch to use the Java libceph bindings that Noah Watkins has been working on. I suspect we'll do the conversion locally if he or somebody else hasn't done it in the next 2-3 months. Once that conversion is complete and people have reviewed it we'll start running some real benchmarks and try to push the bindings upstream to Apache. If we can't make that happen we'll at least package it up a little better than it is right now.

Quoted 1 line

Are there any benchmarks out there between HDFS and ceph?

We don't have any local ones of substance, although I think Noah's group did some recently? I did some several years ago that showed rough parity, but they were all single-machine instances and short tests.

Although honestly until somebody reviews the Hadoop bindings and we go through some proper tuning and semantics checks I wouldn't trust numbers either way too much. -Greg

#2 lore raw
In reply to Matt Weil

Ceph has a several problems right now:
a) due of strict posix sematics ceph can't handle high throughput. it very eays to hit max iops (even if we on tmpfs with journal)
b) broken timestamps. in my case it affected HBase HLog functionality, so it is possible to not recover after fail.

For 6 nodes cluster (I use xfs, because btrfs degrades on high volumes)

Ceph 0.43 (from my github)
------------------------------------------------------------------
Date & time: Thu Mar 01 18:38:16 MSK 2012
Number of files: 36
Total MBytes processed: 360000

     Throughput mb/sec: 2.8411840839866644
Average IO rate mb/sec: 2.8668723106384277
 IO rate std deviation: 0.29681573660544924
    Test exec time sec: 3991.457

Original hadoop
------------------------------------------------------------------
----- TestDFSIO ----- : write
Date & time: Thu Mar 01 14:08:53 MSK 2012
Number of files: 36
Total MBytes processed: 360000

     Throughput mb/sec: 4.59152733368745
Average IO rate mb/sec: 4.596996784210205
 IO rate std deviation: 0.16118933245583172
    Test exec time sec: 2313.589

2012/3/15 Matt Weil <[email protected]>:

Quoted 10 lines
Quoted 1 line

http://ceph.newdream.net/wiki/Using_Hadoop_with_Ceph

What are the plans going forward.

Are there any benchmarks out there between HDFS and ceph?
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Andrey.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

Hi Andrey,

Quoted 3 lines · Andrey Stepachev

Ceph has a several problems right now:
a) due of strict posix sematics ceph can't handle high throughput. it very eays to hit max iops (even if we on tmpfs with journal)

If I had to guess I wouldn't suspect the POSIX/metadata stuff initially, as that generally doesn't get in the way of data iops (although it's possible). I take it TestDSFIO is a standard hadoop benchmark? I continue to be annoyed and frustrated that we don't have a java/hadoop person in-house to work on this stuff (hint hint,
http://ceph.newdream.net/jobs). I hope we can carve some resources out to work on this stuff soon.

Quoted 2 lines

b) broken timestamps. in my case it affected HBase HLog functionality, so it is possible to not recover after fail.

I take it this the same problem Noah was seeing?
(http://tracker.newdream.net/issues/1666)

Thanks!
sage

Quoted 47 lines

For 6 nodes cluster (I use xfs, because btrfs degrades on high volumes)

Ceph 0.43 (from my github)
------------------------------------------------------------------
Date & time: Thu Mar 01 18:38:16 MSK 2012
Number of files: 36
Total MBytes processed: 360000

     Throughput mb/sec: 2.8411840839866644
Average IO rate mb/sec: 2.8668723106384277
 IO rate std deviation: 0.29681573660544924
    Test exec time sec: 3991.457

Original hadoop
------------------------------------------------------------------
----- TestDFSIO ----- : write
Date & time: Thu Mar 01 14:08:53 MSK 2012
Number of files: 36
Total MBytes processed: 360000

     Throughput mb/sec: 4.59152733368745
Average IO rate mb/sec: 4.596996784210205
 IO rate std deviation: 0.16118933245583172
    Test exec time sec: 2313.589

2012/3/15 Matt Weil <[email protected]>:

Quoted 10 lines
Quoted 1 line

http://ceph.newdream.net/wiki/Using_Hadoop_with_Ceph

What are the plans going forward.

Are there any benchmarks out there between HDFS and ceph?
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Andrey.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
Quoted 5 lines · Sage Weil

Hi Andrey,

On Fri, 16 Mar 2012, Andrey Stepachev wrote:

possible). I take it TestDSFIO is a standard hadoop benchmark?

Yes, this is. There are a number of benchmarks that ship with Hadoop. Although this is untested, one reason you might be seeing throughput issues is with the standard read/write interface that copies bytes across the JNI interface. On the short list of stuff for the next Java wrapper set is to use the ByteBuffer interface (NIO) to avoid this copying.

- Noah

#5 lore raw

2012/3/16 Noah Watkins <[email protected]>:

Quoted 10 lines · Sage Weil
Quoted 6 lines

Hi Andrey,

On Fri, 16 Mar 2012, Andrey Stepachev wrote:

possible).  I take it TestDSFIO is a standard hadoop benchmark?

Yes, this is. There are a number of benchmarks that ship with Hadoop. Although this is untested, one reason you might be seeing throughput issues is with the standard read/write interface that copies bytes across the JNI interface. On the short list of stuff for the next Java wrapper set is to use the ByteBuffer interface (NIO) to avoid this copying.

I'm not sure, that problem on java side. All disks loaded at 100%, so I think, that problem clearly on osd part. But i want to test your new integration and see, if something changes. You maybe right, but I'm not.

Quoted 2 lines

- Noah

Signature · 5 lines
Andrey.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw
Quoted 8 lines · Andrey Stepachev

2012/3/16 Noah Watkins <[email protected] (mailto:[email protected])>:

Quoted 7 lines · Sage Weil
Quoted 5 lines

Hi Andrey,

On Fri, 16 Mar 2012, Andrey Stepachev wrote:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

possible). I take it TestDSFIO is a standard hadoop benchmark?

Yes, this is. There are a number of benchmarks that ship with Hadoop. Although this is untested, one reason you might be seeing throughput issues is with the standard read/write interface that copies bytes across the JNI interface. On the short list of stuff for the next Java wrapper set is to use the ByteBuffer interface (NIO) to avoid this copying.

I'm not sure, that problem on java side. All disks loaded at 100%, so I think, that problem clearly on osd part. But i want to test your new integration and see, if something changes. You maybe right, but I'm not.

Those are some awfully slow disks. I don't know exactly what this test measures, but if you're write-constrained on the HDFS side then Ceph will definitely be slower due to little things like the journaling that it does. And that is a data safety issue where Ceph is paying much higher costs than HDFS does. But it doesn't mean that Ceph is necessarily slower on good hardware. :)
-Greg

#7 lore raw

2012/3/17 Greg Farnum <[email protected]>:

Quoted 11 lines · Andrey Stepachev
Quoted 10 lines

2012/3/16 Noah Watkins <[email protected] (mailto:[email protected])>:

Quoted 9 lines · Sage Weil
Quoted 6 lines

Hi Andrey,

On Fri, 16 Mar 2012, Andrey Stepachev wrote:

possible). I take it TestDSFIO is a standard hadoop benchmark?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Yes, this is. There are a number of benchmarks that ship with Hadoop. Although this is untested, one reason you might be seeing throughput issues is with the standard read/write interface that copies bytes across the JNI interface. On the short list of stuff for the next Java wrapper set is to use the ByteBuffer interface (NIO) to avoid this copying.

I'm not sure, that problem on java side. All disks loaded at 100%, so I think, that problem clearly on osd part. But i want to test your new integration and see, if something changes. You maybe right, but I'm not.

Those are some awfully slow disks.

Replication was 3.

Quoted 1 line

I don't know exactly what this test measures, but if you're write-constrained on the HDFS side then Ceph will definitely be slower due to little things like the journaling that it does. And that is a data safety issue where Ceph is paying much higher costs than HDFS does.

This test runs 36 mappers on 6 hosts. Each mapper writes its own file in parallel.
All that hosts host ceph filesystem. 6 osd, 1 mds + 2 standby, 3 mons. Mappers was executed on that hosts.

Quoted 1 line

But it doesn't mean that Ceph is necessarily slower on good hardware. :)

I don't mean, that Ceph is somewhat slower at general. Test shows, that hadoop on ceph is x1.5 times slower, then hdfs. Hadoop has specific write workload and on that workload hadoop shines right now.
Hadoop read also better. Hadoop can read locally from replica.

Quoted 3 lines

-Greg

Signature · 1 line
Andrey.
#8 lore raw
Quoted 1 line · Andrey Stepachev

Hadoop read also better. Hadoop can read locally from replica.

Although not heavily tested yet, reading from replicas should be working for Ceph.

- Noah