ovh / svfs

The Swift Virtual File System
Other
374 stars 54 forks source link

Use svfs as backend for an email server #137

Open marino-mrc opened 7 years ago

marino-mrc commented 7 years ago

Hi, I'd like to know if it is a good idea use svfs as backend for an email server. Basically emails are static files and there is no need to open files in append mode. I'm sorry if this is a stupid question but ask is a good idea I think.

xlucas commented 7 years ago

I guess it will probably perform poorly since essentially requiring to handle many small objects. This means latency will be the tipping point here and adds up.

marino-mrc commented 7 years ago

Hi xlucas, thank you for your answer. As mentioned here -> http://www.admin-magazine.com/Archive/2015/26/Scalable-mail-storage-with-Dovecot-and-Amazon-S3 , the idea is not so bad, but probably I need some kind of local cache. This depends a lot on how svfs manages files with an high access frequency. There are 2 way (I think): 1) Integrate a caching filesystem for /mnt/my_openstack_container or 2) use only svfs if it works well also for caching. What do you think about this?

xlucas commented 7 years ago

From the quick look I took, what I've understood from this mail server is that it manages a local cache with an S3 plugin, configurable in size. And then the article seems to skip the setup with an actual S3 storage, uses a Ceph setup with a gateway instead. My bet is it would really be inefficient with an end-to-end S3 setup and the cache won't be enough to run this smoothly.

In the case of a setup with svfs, a few problems arise:

Obviously, if you are only planning to host a personal mailbox with limited content it will probably be ok, but as soon as you reach larger volumes that won't be a solution that fits well.