-
Notifications
You must be signed in to change notification settings - Fork 671
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
ideal flow for DevOps #2000
Merged
Merged
ideal flow for DevOps #2000
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.. _devops-ideal-flow: | ||
|
||
Ideal Flow for DevOps | ||
--------------------- | ||
|
||
Flyte could be useful for many use cases, be it model training, data processing, ELT/ETL, or bioinformatics. | ||
When workflows are built and deployed, be it in any domain, we may need automation to reduce human-in-the-loop to some extent; | ||
essentially, to automate serializing and registering workflows, creating docker containers, etc. | ||
|
||
Before diving into an example use case that explains how DevOps could power Flyte pipelines, let's look at some DevOps-style features Flyte ships with. | ||
|
||
- Every DAG is versioned with Git commit's SHA, which is modifiable | ||
samhita-alla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Tasks and workflows are immutable | ||
samhita-alla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- In the case of rapid iteration of code with no dependency modification, :ref:`deployment-fast-registration` can be used | ||
- Multi-tenancy support through projects and domains | ||
- Executions can be monitored using logs on :ref:`Flyte UI <ui>` | ||
|
||
Lyft's Use Case | ||
samhita-alla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
=============== | ||
|
||
Flyte powers more than 1 million model training and data processing executions per month at Lyft. | ||
DevOps automation has been made part of Flyte pipelines to handle such a massive number of executions. | ||
|
||
- Every time a new PR is created: | ||
|
||
- A Docker container is built from the PR | ||
- Tasks and workflows are registered with Flyte | ||
- If dependencies are modified, PR securely builds the container again | ||
- For just code changes, fast registration is used | ||
samhita-alla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Once a PR is merged, the user simulates a deployment through a deployment pipeline | ||
- At each stage of the deployment, tasks and workflows are registered with a specific domain in Flyte, | ||
where each domain may change the data directory, associated roles, or some meta attributes like labels and annotations | ||
- For production deployments, logs and metrics are automatically tracked, and models are promoted to serving infrastructure | ||
- Users can use interactive notebooks to retrieve intermediate or final outputs, analyze data and automate various monitoring tasks | ||
|
||
Thus, everything is automatically tracked. In fact, multiple users can create isolated PRs and test independently. | ||
|
||
Implementing DevOps when running Flyte pipelines is essential when Flyte is deployed to production. | ||
samhita-alla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
You could have a team of engineers working on various pipelines with continuous code iteration and deployment. | ||
In such a case, we highly encourage you to incorporate automation to build Flyte pipelines. | ||
This could help speed up your development, iteration, and deployment time! |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should not say devops, we can just say how to maintain a good workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now using the title: "How to Streamline Your Flyte Workflows"