Comments (11)
You're absolutely right.
I think it would be helpful to compare some current solutions with your mentioned use cases. It seems to be a good starting point for new docker swarm users which are looking for best practice implementation. As a beginner it's quite hard to find a simple route in 2020 for replicated volumes.
Maybe it would also help to list the mostly used products in 2020 and describe some implemtations for some use cases?
from dockerswarm.rocks.
from dockerswarm.rocks.
Yeah, the thing is that I don't have a recommendation for that. I don't think any of the currently available tools solve all the related problems.
For example, you probably wouldn't put the files of a SQL DB in one of those systems.
They would work best for binary files stored as blobs that can be retrieved and saved, etc. But not constantly updated, indexed, etc. And in those cases, I would think MinIO could work better.
from dockerswarm.rocks.
Hey,
Maybe Galera is a good approach? I have not tested just found it in my searches. Insteresting because of the realtime round-robin thing so if falls in real-time another DB takes over due to the realtime replication no loss, sounds interesting. Not sure how it works in practice.
https://blog.ruanbekker.com/blog/2019/05/10/running-a-ha-mysql-galera-cluster-on-docker-swarm/
Looking at the Galera site, MercadoLivre uses Galera.. they're the eBay of Latin America: https://galeracluster.com/
This looks like a paid product and they say to have a free version: https://severalnines.com/product/clustercontrol
from dockerswarm.rocks.
https://docs.docker.com/engine/examples/couchdb_data_volumes/
from dockerswarm.rocks.
We use swarm in production with 80+ containers. In our environment ie AWS we use EFS for persistence. We have EFS mounted to all the swarm nodes and the docker files map the volumes to the efs mount. Works well for the small amount of persistence we need. EFS is expensive so if you had a large volume of data that needed persistence I'd use something else. As a general note, we will be moving to k8s so I'm not sure what we will do in the future. Overall, some sort of NFS mount has worked well in my experience. It's also simple to use once setup.
from dockerswarm.rocks.
I use Resilio at the moment. But I'm about to switch to this.
To be clear, this has nothing to do with Swarm. It's just a folder that syncs between my nodes.
from dockerswarm.rocks.
guys, what can You say about this option?
https://github.com/vieux/docker-volume-sshfs
from dockerswarm.rocks.
Hola yo utilizo una infraestructura de almacenamiento distribuido con glusterfs replicado en 6 maquinas generando 6 volúmenes replicados con un quórum del 48% y funcionado en un cluster de docker swarm. Funciona bien. Solo debes tener cuidado con el cerebro dividido
from dockerswarm.rocks.
I should let you know, that I had to deprecate this website and ideas, I would no longer recommend Docker Swarm Mode for new projects: https://dockerswarm.rocks/swarm-or-kubernetes/ 🥲
from dockerswarm.rocks.
Thanks for the update on this.
Btw, I decided using NFS for volumes and still using docker swarm in production ;).
from dockerswarm.rocks.
Related Issues (20)
- Swarmpit setup fails - http://db:5984 host unreachable HOT 4
- Service placement on different node makes it unreachable HOT 2
- Swarmpit on ARM HOT 1
- Let's encrypt issue HOT 2
- Setting up hostname didn't work
- 404 for grafana / prometheus requests HOT 2
- Traefik example and its labels HOT 1
- Suggestion: Start with simple stack to get Portainer running with Caddy HOT 2
- Traefik on 2 Manager Nodes HOT 4
- What are the things to look when traefik.<domain name> is not loading? HOT 2
- Any recommended FOSS projects for Docker Swarm Mode deployments? HOT 3
- Traefik : redirect all http to https HOT 4
- n/a
- nginx loadbalancer
- Custom SSL Certificate HOT 2
- [feature request] dark mode for dockerswarm.rocks HOT 1
- Traefik redundancy and DNS configuration HOT 3
- Feature Request: Explain the roles of Portainer and Swarmpit (better) HOT 1
- Is dockerswarm.rocks still maintained? HOT 13
- Everything depends on the first node despite being in swarm mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerswarm.rocks.