rancher / community-catalog

Catalog entries contributed by the community
384 stars 636 forks source link

[drone-workers] distributed cache #148

Open cdaguerre opened 8 years ago

cdaguerre commented 8 years ago

I'm trying to set up distributed cache amongst drone worker nodes. I created a gluster fs storage pool sharing /var/lib/drone/cache across all drone-agent containers but that doesn't work... /cc @cloudnautique Would be great if the rancher/drone-config Dockerfile could be public by the way! And cheers for that awesome setup (up and running in < 5 minutes, insane)

cloudnautique commented 8 years ago

@cdaguerre ,

Glad the setup was smooth!

All Dockerfiles by us are kept in rancher/catalog-dockerfiles the one your looking for is here: https://github.com/rancher/catalog-dockerfiles/tree/master/drone/containers/0.1.0/drone-config

I think in order to get a distributed cache going.. you'd need mount it at a host level in /var/lib/drone/cache. Based on the docs, that seems like the only approach. The host agents are just containers that expose the Docker socket to Drone server. The mounts/volumes are not shared.

I'd have to look to see if convoy-gluster would help here.