Search K
Appearance
Appearance
Dovecot has an object storage emulator called fs-server
. It can be used to emulate Scality SProxyD. S3 is not currently supported.
This tool is not intended for production use. This can be ran as part of any Dovecot deployment, but for best results, you should use a dedicated instance for this.
First configure the storage location:
fs_server_backend = metawrap:posix:prefix=/var/fsserver/:dirs
Then you can configure the listener.
For SProxyD, use
service fs-server {
inet_listener sproxyd {
port = 801
}
}
To configure a backend to use SProxyD, configure
plugin {
obox_fs = fscache:1G:/tmp/fscache:dictmap:proxy:idle_msecs=10000:dict-async:cassandra ; sproxyd:http://localhost:801/?class=2&max_retries=0 ; refcounting-table:lockdir=/tmp:bucket-size=1:bucket-cache=%h/obox/buckets.cache
obox_index_fs = compress:gz:6:dictmap:proxy:idle_msecs=10000:dict-async:cassandra ; sproxyd:http://localhost:801/?class=2&max_retries=0 ; diff-table
}
Note that SProxyD needs Dictmap to work.
Files are stored as-is into the specified directory.
To enable debugging, add
service fs-server {
executable = fs-server -D