Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Allow configuring how replicas are deployed in docker swarm. #43937

Open
jerrac opened this issue Aug 8, 2022 · 0 comments
Open
Labels
area/stack area/swarm kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny

Comments

@jerrac
Copy link

jerrac commented Aug 8, 2022

Description

Let me configure how my replicas are deployed. Specifically let me tell Swarm to deploy them one at a time. I can do that when running updates or rollbacks, but I can't do it when starting a stack for the first time. (At least as far as I've been able to test and search...)

My specific use case is a MariaDB cluster. One replica needs to be started first so that the other replicas can join the cluster instead of bootstrapping their own. I imagine this would be useful for any stateful cluster application.

Ideally I'd write something like:

services:
  statefulclusterapp:
    image: statefulclusterapp:1.2.3
    deploy:
      replicas: 3
      deploy_config:
        parallelism: 1
      update_config:
        parallelism: 1
      

Alternatively, we could just treat deploy the same as update, so update_config would apply during deployment.

When looking for similar issues or requests, I did find: #31333. I did not contribute there because my request is specifically about deployment of replicas, not dependencies between services.

Thanks in advance for any consideration of my idea!

And thanks for making Docker in the first place. It's an amazing tool. :)

@jerrac jerrac added kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage labels Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/stack area/swarm kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny
Projects
None yet
Development

No branches or pull requests

2 participants