-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Add option to compress dag data #21332
Conversation
ca8b104
to
53e033f
Compare
@potiuk @ashb @kaxil @XD-DENG could you please take a look at this PR? The CI failure isn't related to this PR. https://github.com/apache/airflow/runs/5098104683?check_suite_focus=true#step:11:281 |
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.
Couple of small changes/comments, one medium one about the dag dependencies view and a one big one about the right compression format to use.
Sounds broadly sensible though :)
airflow/migrations/versions/a3bcd0914482_add_data_compressed_to_serialized_dag.py
Outdated
Show resolved
Hide resolved
airflow/migrations/versions/a3bcd0914482_add_data_compressed_to_serialized_dag.py
Outdated
Show resolved
Hide resolved
61f0df6
to
416d829
Compare
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
d7366ee
to
a8b99f9
Compare
a8b99f9
to
3b0deda
Compare
@ashb nice, after your rebase, the CI passed. hmm, very strange that my pushes did not pass the CI 🤦 |
That's cos we fixed the broken main :) |
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.
1 nit
3b0deda
to
a79aafc
Compare
a79aafc
to
20ebdc3
Compare
@kaxil addressed your feedback. also the the static CI check isn't related to this PR. can we merge this PR. thanks |
The uncompressed dag data size can be very large for large DAGs. In our prod db, the dag size can be up to
514MB
.Adding this optional feature to compress the dag data. It reduces the size from
514MB
to44MB
.By default,
compress_serialized_dags
isFalse
.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.