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

fix(titus): Adjust retries on upsert scaling policy operation #4090

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

jeyrschabu
Copy link
Contributor

@jeyrschabu jeyrschabu commented Oct 15, 2019

  • wrap a retry on scaling policy create call for good measure
  • fix retry count/timeout for checking if the scaling policy was applied
  • make retry to be exponential

@jeyrschabu
Copy link
Contributor Author

When creating a new scaling policy, Spinnaker polls titus for approximately 50s to check if the policy was applied.
Spinnaker will fail the pipeline if the policy isn't reported as applied by Titus in that timeframe.
This happens whenever there is increase in latency between titus and aws and the new status isn't reflected in time.
Having an exponential retry here sounds like a good idea.

}
}, 5000, 10, false)
Copy link
Member

Choose a reason for hiding this comment

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

lol omg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol

Copy link
Contributor

Choose a reason for hiding this comment

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

omg wat

- wrap a retry on scaling policy create call for good measure
- fix retry count/timeout for if checking scaling policy was applied
- make retry to be exponential
@cfieber cfieber added the ready to merge Approved and ready for a merge label Oct 17, 2019
@jeyrschabu jeyrschabu merged commit a88451c into spinnaker:master Oct 17, 2019
@jeyrschabu jeyrschabu deleted the titus-upsert-policy branch October 17, 2019 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Approved and ready for a merge target-release/1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants