fiber icon indicating copy to clipboard operation
fiber copied to clipboard

Docker Swarm support

Open danilopeixoto opened this issue 4 years ago • 3 comments

I want to use Fiber to execute a job queue on a Docker Swarm cluster. Fiber already has a Docker backend that spawns processes as containers. What about spawning processes as Docker Swarm services?

Swarm would be a new backend, right?

danilopeixoto avatar Jul 07 '20 03:07 danilopeixoto

Hi @danilopeixoto, docker swarm is currently not supported, but it could be added as a new backend. I'm less familiar with Docker swarm, not sure if it has similar APIs like Kubernetes. If it does, it should be easy to create a new docker swarm backend and implement the functions here https://github.com/uber/fiber/blob/master/fiber/core.py#L79 with docker swarm API.

calio avatar Jul 07 '20 06:07 calio

Thanks @calio.

danilopeixoto avatar Jul 07 '20 18:07 danilopeixoto

Just out of interest, what is your main use case? Trying to understand different use cases so that future priorities can be prepared.

calio avatar Jul 08 '20 04:07 calio