-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for launchplan cache resync duration (#115)
## Overview Currently, the launchplan cache resync duration uses the [DownstreamEval duration configuration](https://github.com/unionai/flyte/blob/f1569a2be356f372fb5dadd88b111758011f2f12/flytepropeller/pkg/controller/controller.go#L340-L340) which is also used for the [sync period on the k8s client](https://github.com/unionai/flyte/blob/master/flytepropeller/cmd/controller/cmd/root.go#L143-L143). This means if we want to configure a more aggressive launchplan cache resync, we would also incur overhead in syncing all k8s resources (ex. Pods from `PodPlugin`). By adding a separate configuration value we can update these independently. ## Test Plan Tested locally with default / 1s configuration. Should deploy in dogfood for peace of mind. ## Rollout Plan (if applicable) Release should be unconfigured to fallback to the default of 30s. For specific use-cases (ex. Spotify) we will aggressively reduce this (ex. 1s). ## Upstream Changes - [ ] To be upstreamed ## Jira Issue https://unionai.atlassian.net/browse/CLOUD-1574 ## Checklist * [x] Added tests * [ ] Ran a deploy dry run and shared the terraform plan * [ ] Added logging and metrics * [ ] Updated [dashboards](https://unionai.grafana.net/dashboards) and [alerts](https://unionai.grafana.net/alerting/list) * [ ] Updated documentation
- Loading branch information
Showing
6 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
flytepropeller/pkg/controller/nodes/subworkflow/launchplan/adminconfig_flags.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
flytepropeller/pkg/controller/nodes/subworkflow/launchplan/adminconfig_flags_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.