citusdata / docker

:ship: Docker images and configuration for Citus
Apache License 2.0
241 stars 100 forks source link

Binding local folder to worker in cluster #307

Open jochendemuth opened 2 years ago

jochendemuth commented 2 years ago

Using docker-compose.yml to deploy citus cluster. Works great!

Now, in preparation for a larger scale deployment I would like to mount the data directories of the workers to local folders. This would allow me to direct worker data volumes easily to different physical drives/storage.

I started by adding a line into the docker-compose.yml file extending the "volumes:" specification so that it reads: ... volumes:

I was hoping to specify a local subfolder named like the worker. Really, just any way to provide distinct folders to every worker. Reading through the docker-compose.yml specification I could not find a way to do so. E.g. I tried various ways to reference a container name or retrieve a runtime enumeration of worker nodes. But to no avail. E.g. ... volumes:

I am relatively new to yml in general and docker-compose.yml in particular. Would you know a way to accomplish my goal?

onurctirtir commented 2 years ago

@gurkanindibay, do you have some time to have a look into that ?

gurkanindibay commented 2 years ago

@onurctirtir Thanks for the heads up. However,my plate is full for now. I have urgent issues to fix

rcronin commented 1 year ago

@gurkanindibay - Any update on this? Would be a nice feature to be able to do this

gurkanindibay commented 1 year ago

@rcronin Thanks for your interest still I can not prioritize this issue.