Skip to content

Consider time-based retries for deployments #3051

Closed

Description

@ironcladlou

#3035 exposes some undesirable retry configuration in the deployment controllers. The controllers could be taking advantage of the latest RetryManager improvements which add time-based retries.

Here's a breakdown of how retry handling works for the various deployment controllers today:

  1. DeploymentConfigController
    1. Explicitly marked transient errors are retried indefinitely (rate limited)
    2. All other nonfatal errors are retried once immediately
  2. DeploymentController
    1. Nonfatal errors are retried once immediately
  3. DeployerPodController
    1. All errors are retried once immediately
  4. ConfigChangeController
    1. Nonfatal errors are retried once immediately
  5. ImageChangeController
    1. Nonfatal errors are retried once immediately

For each controller and error class we can choose to retry indefinitely, up to a certain amount of time, or up to a certain number of times. Let's use this issue to define the requirements for each controller.

Activity

  1. ironcladlou commented on Jun 12, 2015

    @ironcladlou
    ContributorAuthor

    Consider that many important retries are implicitly occuring automatically based on periodic Reflector resyncs into FIFOs backing the controllers. So even with no explicit retry management we're re-processing the current state of things every once in a while.

  2. liggitt commented on Jun 12, 2015

    @liggitt
    Contributor

    That's true, but longer timeouts on the API server will make full resyncs from dropped watches less frequent. Artificially short resyncs become a performance issue.

  3. ironcladlou commented on Jun 12, 2015

    @ironcladlou
    ContributorAuthor

    That's true, but longer timeouts on the API server will make full resyncs from dropped watches less frequent. Artificially short resyncs become a performance issue.

    Totally agree, just wanted to point out that we shouldn't actually miss retries entirely today, but that they'll happen inefficiently without resolution of this issue.

  4. modified the milestone: 1.1.0 on Jun 17, 2015
  5. ironcladlou commented on Jul 1, 2015

    @ironcladlou
    ContributorAuthor

    My current impression is #2828 is higher priority than this issue. Should this be a p3?

  6. modified the milestones: 1.1.x, 1.1.0 on Nov 4, 2015
  7. smarterclayton commented on Feb 20, 2016

    @smarterclayton
    Contributor

    What's the status of this (@Kargakis?)

  8. modified the milestones: 1.1.x, 1.2.x on Feb 20, 2016
  9. 0xmichalis commented on Feb 22, 2016

    @0xmichalis
    Contributor

    If @ironcladlou hasn't worked on it already locally then I guess it still needs fixing...

  10. ironcladlou commented on Feb 22, 2016

    @ironcladlou
    ContributorAuthor

    Still needs work, and also need to audit error logging/event surfacing of each retry path. Pretty sure there are some places where we'll silently fail after a single retry limit is exceeded.

  11. removed this from the 1.2.x milestone on Jun 23, 2016
  12. 0xmichalis commented on Jun 23, 2016

    @0xmichalis
    Contributor

    Superseded by #9468

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions