简体   繁体   中英

Persistent storage for WebDAV server on docker swarm?

How can I achieve a persistent storage for a WebDAV server running on several/any swarm nodes? It's part of a docker-compose app running on my own vSphere infrastructure.

I was thinking about mounting an external NFS share from insde the containers (at the OS level, not docker volumes) but then how would that be better than having WebDAV outside the swarm cluster?

I can think of 2 options:

  1. Glusterfs

This option is vSphere independent. You can create replicated bricks and store your volumes on them. Exposing same volume to multiple docker hosts . So in case of node failure the container will get restarted on another node and has it's persistent storage with it. You can also mount the persistent data on multiple containers.

There is one catch: Same diskspace will be consumed on multiple nodes.

  1. Docker-Volume-vSphere

This option requires vsphere hosts. You can create docker volumes on vmfs datastores. they will be shared between docker hosts ( virtual machines ). So in case of failure the container restarts on another node and has persistent data available. Multiple containers can share a single volume.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM