Ask Your Question

can i use ssd caching with swift object storage?

asked 2014-01-27 07:33:34 -0500

capsali gravatar image

The title is self explanatory. Can i use something like bcache on the swift storage node for caching? If so will it have any effect on performance or will it degrade it like raid arrays seem to do with swift? Thanks!

edit retag flag offensive close merge delete


Hi , What's your purpose to cace object in this way ? For higher read performance on hot data ?

Hugo Kuo gravatar imageHugo Kuo ( 2014-01-29 04:52:07 -0500 )edit

Hi, and yes :) I want to use swift as a back-end to owncloud or something similar and for image storage. So i was thinking of using some sort of caching for hot data to reduce hdd overhead!

capsali gravatar imagecapsali ( 2014-01-29 11:52:29 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-02-03 14:06:01 -0500

torgomatic gravatar image

Might work. It looks like bcache does not cache sequential reads and writes on the fast device, so the object auditor shouldn't thrash the cache too badly. Might get you caching of all the filesystem metadata, which would probably boost the speed some. On the other hand, bcache does not cache sequential reads, so if you're hoping for hot objects to be cached on the SSD, it doesn't look like that'll happen.

Ultimately, Swift just wants a mounted filesystem somewhere to write data into, so it will work in the sense that Swift API operations will complete correctly; as for performance, try it and see.

Report back and let us know how it goes. :)

edit flag offensive delete link more

answered 2014-02-04 23:22:11 -0500

Kevin C gravatar image

We have seen performance gains by putting the accounts and containers on SSDs and leaving the objects on fast SAS drives. However, we are focusing more on supporting multiple petabytes instead of a smaller faster cloud.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-01-27 07:33:34 -0500

Seen: 1,296 times

Last updated: Feb 04 '14