Yajo
Yajo

Reputation: 6428

What's the fastest way to use Ceph volumes in Docker Swarm?

I want to set up a Swarm with persistent and replicated volumes through Ceph. I see these options to combine both services, once both are set up:

  1. Configure the host OS to mount a CephFS in /var/lib/docker/volumes.
  2. Use rexray/rbd as a volume driver.
  3. Use rexray/s3fs to access Ceph object store, which is S3-compatible.

I wonder now: which option would deliver fastest performance? Is there another better option that I'm missing? Thanks.

Upvotes: 3

Views: 4901

Answers (1)

itsafire
itsafire

Reputation: 6113

In general for best performance you should go for rbd, since it provides you with direct block access to the ceph volume, whereas s3fs is quite much more machinery to be spun, which eventually result in longer response times. Having quick responses for random read/writes is especially important when you have a scenario like running a postgreSQL (or MariaDB) database with mixed read/write load.

This is only a general advice looking at Ceph rbd. But my guess is this will apply as well to docker storage drivers.

Upvotes: 4

Related Questions