Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

controller: Add in-batches deploy strategy #4567

Merged
merged 3 commits into from Dec 30, 2019
Merged

Conversation

lmars
Copy link
Contributor

@lmars lmars commented Nov 30, 2019

This adds a one-per-host deployment strategy that is similar to a one-by-one deployment but scales one job per host at each step of the deploy.

The actual strategy just scales in batches equal to the host count and relies on the scheduler distributing the jobs evenly across the hosts in the cluster to effectively scale one per host.

Ref #3010.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some fixes!

P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).

test/test_deployer.go Outdated Show resolved Hide resolved
Signed-off-by: Lewis Marshall <lewis@lmars.net>
@lmars
Copy link
Contributor Author

lmars commented Dec 8, 2019

The original changeset missed the requirement that this should support a configurable batch size rather than just the number of hosts.

Given that, in fa56f82 I have:

  • Renamed the new strategy to in-batches
  • Added flynn deployment batch-size <size> to set the batch size
  • Added flynn deployment batch-size to get the current batch size

If the batch size is not set explicitly, then the deployment will behave as originally implemented (i.e. use the host count as the batch size).

@titanous ready for review.

@lmars lmars changed the title controller: Add one-per-host deploy strategy controller: Add in-batches deploy strategy Dec 8, 2019
Signed-off-by: Lewis Marshall <lewis@lmars.net>
@lmars lmars merged commit 627d0a8 into master Dec 30, 2019
@lmars lmars deleted the deployment-per-host branch December 30, 2019 16:33
@lmars lmars mentioned this pull request Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants