Skip to contentSkip to conversation

crush and go

DISCUSSION Loic Dachary 2 participants 3 messages Mar 21, 2015 – Mar 23, 2015

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · Loic Dachary

Hi,

Does anyone know of a go wrapper around the crush library ? I looked at
http://go-search.org/search?q=crush but did not find anything relevant.

I think it will be difficult to build such a wrapper until we spend the time coralling crush into a nice .so. The challenge there is that while the core mapping code is quite simple (and in C, and duplicated in the kernel), the CrushWrapper stuff depends on a bunch of Ceph infrastrcture, like the bufferlist encode/decode stuff and CephContext for debugging. Without all of that the core mapping library isn't terribly useful or friendly.

I'm not sure what the best path to making it more easily consumable would be, to be honest...

sage

#2 lore raw
Quoted 14 lines · Sage Weil
Quoted 4 lines · Loic Dachary

Hi,

Does anyone know of a go wrapper around the crush library ? I looked at
http://go-search.org/search?q=crush but did not find anything relevant.

I think it will be difficult to build such a wrapper until we spend the time coralling crush into a nice .so. The challenge there is that while the core mapping code is quite simple (and in C, and duplicated in the kernel), the CrushWrapper stuff depends on a bunch of Ceph infrastrcture, like the bufferlist encode/decode stuff and CephContext for debugging. Without all of that the core mapping library isn't terribly useful or friendly.

Quoted 2 lines

I'm not sure what the best path to making it more easily consumable would be, to be honest...

Hi Sage,

I did not realize it was entangled. Looks like a nice GSoC project :-)

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre