Skip to contentSkip to conversation

Split Swift code with S3 code in Radosgw

DISCUSSION Li Wang 2 participants 2 messages Mar 27, 2013

lore
Share & tools
lore

Li Wang

author
#0 lore raw

Hi there,
We are providing Openstack based cloud solution to customers. We have read the technical papers on Ceph, and our colleague
also consulted the comparision between Ceph and Swift from the ceph-user mailing list. Given the advantages of Ceph over Swift, such as scalability, performance and the all-in-one design, we wanna replace swift with ceph in our openstack solution. However, since the client applications are developed based on Swift API, as far as we know, currently only a subset of Swift API is implemented by Ceph. And furthermore, it seems to us that the S3 compatability owns a higher priority or done earlier in Ceph, the Swift compatibility code is fixed with S3 code, and kind of, yield to the S3 compatibility framework and S3 semantics, which hamper us to add some Swift specific features into Radosgw. And with the developing of Swift as well as S3, we think the current framework will suffer from the code elegance and larger API divergence. We do wanna use Ceph and also wanna make technical contributions to it. We are considering to revise the current framework to split the Swift code with the S3 code, to allow a more friendly support to Swift API and make it easier to add Swift specific features, such as custom metadata, expiring object, negative acl rule, so what is the Ceph community's response?

Cheers,
Li Wang

#1 lore raw
Quoted 4 lines · Li Wang

Hi there,
We are providing Openstack based cloud solution to customers. We have read the technical papers on Ceph, and our colleague
also consulted the comparision between Ceph and Swift from the ceph-user mailing list. Given the advantages of Ceph over Swift, such as scalability, performance and the all-in-one design, we wanna replace swift with ceph in our openstack

Quoted 8 lines

solution. However, since the client applications are developed based on Swift API, as far as we know, currently only a subset of Swift API is implemented by Ceph. And furthermore, it seems to us that the S3 compatability owns a higher priority or done earlier in Ceph, the Swift compatibility code is fixed with S3 code, and kind of, yield to the S3 compatibility framework and S3 semantics, which hamper us to add some Swift specific features into Radosgw. And with the developing of Swift as well as S3, we think the current framework will suffer from the code elegance and larger API divergence. We do wanna use Ceph and also wanna make technical contributions to it. We are considering to revise the current framework to split the Swift code with the S3 code, to allow a more friendly support to Swift API and make it easier to add Swift specific features, such as custom metadata, expiring object, negative acl rule, so what is the Ceph community's response?

The gateway code is layered in such a way that the Swift and S3 code both use a common infrastructure, but diverge where needed. There's a separation between the functional layer, and the presentation layer. Indeed S3 was where we started, so there were some choices that moved the development a bit towards it, however, we don't consider Swift a second grade citizen.
None of the features that you specified really require separate frameworks. Most of the implementation work required will be done in the functional layer, and the Swift/S3 layer will just provide the interface. We already support custom metadata. Expiring object will also be used in S3. Negative acl rule can be implemented with or without needing the S3 layer to be bothered about it.
We'd be more than happy to see more community contribution. If you bump into technical issues that you think are unsolvable within the current framework, we can always take a second look at it, figuring out what needs to be changed.

Thanks,
Yehuda

@ http://inktank.com | http://ceph.com