Skip to content

Rolling-update should have a tunable for the % of pods to bring up at once #2828

Closed

Description

@ironcladlou

Make the rolling update scale amount configurable as a percent of the replica count.

Introduce a new optional deployment API field strategy.rollingParams.updatePercent. If specified, the amount of replicas scaled up and down each interval will be computed as a percentage of the desired replicas (for the new deployment) and the actual replicas (of the old deployment) respectively. If the field is nil, one replica will be scaled up and down each interval.

Depends on kubernetes/kubernetes#10062.

Activity

  1. ironcladlou commented on Jun 4, 2015

    @ironcladlou
    ContributorAuthor
  2. ironcladlou commented on Jun 4, 2015

    @ironcladlou
    ContributorAuthor

    This would have to be an upstream patch we'd carry, and seems nontrivial.

  3. smarterclayton commented on Jun 4, 2015

    @smarterclayton
    Contributor

    Why? We're only going to carry this for a matter of weeks, and the upstream code shouldn't be changing.

  4. abhgupta commented on Jun 5, 2015

    @abhgupta
    Member

    @smarterclayton I believe @ironcladlou's comments were in support of our argument for potentially pushing this past 3.0. Its ok if we don't want to make this determination right now and I am fine with it staying in P2. In the very least, I would suggest considering this lower priority than the other deployment items we are currently working on.

  5. smarterclayton commented on Jun 5, 2015

    @smarterclayton
    Contributor

    Post 3.0

    ----- Original Message -----

    @smarterclayton I believe @ironcladlou's comments were in support of our
    argument for potentially pushing this past 3.0. Its ok if we don't want to
    make this determination right now and I am fine with it staying in P2. In
    the very least, I would suggest considering this lower priority than the
    other deployment items we are currently working on.


    Reply to this email directly or view it on GitHub:
    #2828 (comment)

  6. modified the milestone: 1.1.0 on Jun 17, 2015
  7. ironcladlou commented on Jun 29, 2015

    @ironcladlou
    ContributorAuthor

    This should integrate with kubernetes/kubernetes#10062

  8. ironcladlou commented on Jun 29, 2015

    @ironcladlou
    ContributorAuthor

    Is there implied symmetry with the scale-down? When scaling up X%, should X% then be scaled down each interval?

  9. smarterclayton commented on Jun 29, 2015

    @smarterclayton
    Contributor

    I think so. I don't see a need for a difference

    On Jun 29, 2015, at 3:27 PM, Dan Mace [email protected] wrote:

    Is there implied symmetry with the scale-down? When scaling up X%, should
    X% then be scaled down each interval?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

  10. ironcladlou commented on Jul 1, 2015

    @ironcladlou
    ContributorAuthor

    @smarterclayton

    Should this wait for an upstream merge of kubernetes/kubernetes#10062? If not, should it be developed in origin on top of our patch?

  11. smarterclayton commented on Jul 1, 2015

    @smarterclayton
    Contributor

    Should not not wait

    On Wed, Jul 1, 2015 at 10:33 AM, Dan Mace [email protected] wrote:

    @smarterclayton https://github.com/smarterclayton

    Should this wait for an upstream merge of
    kubernetes/kubernetes#10062
    kubernetes/kubernetes#10062? If not,
    should it be developed in origin on top of our patch?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

    Clayton Coleman | Lead Engineer, OpenShift

  12. ironcladlou commented on Jul 1, 2015

    @ironcladlou
    ContributorAuthor

    @smarterclayton

    I have a WIP upstream branch where I'm developing the support on top of the UpdateAcceptor commit:

    https://github.com/GoogleCloudPlatform/kubernetes/compare/master...ironcladlou:rolling-updater-tunables?expand=1

    Adding the scale amount tunable wasn't too bad, but the problem now is testing it. The complexity of RollingUpdater.Update is getting pretty large, and the test cases are becoming almost incomprehensible. I'm afraid it might be time to refactor this thing and the tests before bolting on even more stuff. What do you think?

  13. smarterclayton commented on Jul 1, 2015

    @smarterclayton
    Contributor

    Up to you - i'd rather not get weighed down in a big refactor though if we
    can selectively introduce parts of it. Agree RollingUpdater.Update is
    large today.

    On Wed, Jul 1, 2015 at 5:09 PM, Dan Mace [email protected] wrote:

    @smarterclayton https://github.com/smarterclayton

    I have a WIP upstream branch where I'm developing the support on top of
    the UpdateAcceptor commit:

    https://github.com/GoogleCloudPlatform/kubernetes/compare/master...ironcladlou:rolling-updater-tunables?expand=1

    Adding the scale amount tunable wasn't too bad, but the problem now is
    testing it. The complexity of RollingUpdater.Update is getting pretty
    large, and the test cases are becoming almost incomprehensible. I'm afraid
    it might be time to refactor this thing and the tests before bolting on
    even more stuff. What do you think?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

    Clayton Coleman | Lead Engineer, OpenShift

  14. ironcladlou commented on Jul 1, 2015

    @ironcladlou
    ContributorAuthor

    I don't really want to carry a big refactor. I'm going to see if I can limp by with the existing tests for the moment.

  15. ironcladlou commented on Jul 2, 2015

    @ironcladlou
    ContributorAuthor

    Regarding symmetry: if you choose 20% and have an asymmetrical old/new (10 old, 20 desired for new), should old AND new be scaled down by 4 each interval, or should old scale by 2 and new by 4?

  16. smarterclayton commented on Jul 2, 2015

    @smarterclayton
    Contributor

    I don't think we need asymmetry - haven't heard a compelling use case

    On Jul 2, 2015, at 11:58 AM, Dan Mace [email protected] wrote:

    Regarding symmetry: if you choose 20% and have an asymmetrical old/new (10
    old, 20 desired for new), should old AND new be scaled down by 4 each
    interval, or should old scale by 2 and new by 4?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

  17. ironcladlou commented on Jul 2, 2015

    @ironcladlou
    ContributorAuthor

    @smarterclayton

    My upstream branch has unit tested code to support the percentage configuration. I had to do a bit of refactoring to the rolling updater so that I could reign in the tests. They're much better than before IMO, but it's a lot of test code. You want to review it and decide if it looks like something we want to try and carry in a patch?

  18. smarterclayton commented on Jul 2, 2015

    @smarterclayton
    Contributor

    I can't comment on the branch (have a few things) but it looks acceptable
    to carry.

    On Thu, Jul 2, 2015 at 1:23 PM, Dan Mace [email protected] wrote:

    @smarterclayton https://github.com/smarterclayton

    My upstream branch
    https://github.com/GoogleCloudPlatform/kubernetes/compare/master...ironcladlou:rolling-updater-tunables?expand=1
    has unit tested code to support the percentage configuration. I had to do a
    bit of refactoring to the rolling updater so that I could reign in the
    tests. They're much better than before IMO, but it's a lot of test code.
    You want to review it and decide if it looks like something we want to try
    and carry in a patch?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

    Clayton Coleman | Lead Engineer, OpenShift

  19. ironcladlou commented on Jul 2, 2015

    @ironcladlou
    ContributorAuthor

    For an upstream pull, should I replace kubernetes/kubernetes#10062 with a new PR containing the UpdateAcceptor commit and the new percentage stuff? Or keep them separate and link the new one as a dependency of the first?

  20. smarterclayton commented on Jul 2, 2015

    @smarterclayton
    Contributor

    update the existing PR and change the descriptions to match

    On Thu, Jul 2, 2015 at 3:47 PM, Dan Mace [email protected] wrote:

    For an upstream pull, should I replace
    kubernetes/kubernetes#10062
    kubernetes/kubernetes#10062 with a new
    PR containing the UpdateAcceptor commit and the new percentage stuff? Or
    keep them separate and link the new one as a dependency of the first?

    —
    Reply to this email directly or view it on GitHub
    #2828 (comment).

    Clayton Coleman | Lead Engineer, OpenShift

  21. ironcladlou commented on Jul 2, 2015

    @ironcladlou
    ContributorAuthor

    I've expanded kubernetes/kubernetes#10062 to include both the UpdateAcceptor and the tunable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions