ryanahamilton commented on a change in pull request #13722:
URL: https://github.com/apache/airflow/pull/13722#discussion_r559662014
##########
File path: docs/apache-airflow/dag-serialization.rst
##########
@@ -33,25 +34,28 @@ With **DAG Serialization** we aim to decouple the webserver
from DAG parsing
which would make the Webserver very light-weight.
As shown in the image above, when using the this feature,
-the Scheduler parses the DAG files, serializes them in JSON format and saves
them in the Metadata DB
-as :class:`airflow.models.serialized_dag.SerializedDagModel` model.
+the :class:`~airflow.jobs.scheduler_job.DagFileProcessorProcess` in the
Scheduler
+parses the DAG files, serializes them in JSON format and saves them in the
Metadata DB
+as :class:`~airflow.models.serialized_dag.SerializedDagModel` model.
The Webserver now instead of having to parse the DAG file again, reads the
serialized DAGs in JSON, de-serializes them and create the DagBag and uses it
-to show in the UI.
+to show in the UI. And the Scheduler does not need the actual DAG for making
Scheduling decisions,
Review comment:
```suggestion
to show in the UI. And the Scheduler does not need the actual DAG for making
Scheduling decisions,
```
##########
File path: docs/apache-airflow/dag-serialization.rst
##########
@@ -33,25 +34,28 @@ With **DAG Serialization** we aim to decouple the webserver
from DAG parsing
which would make the Webserver very light-weight.
As shown in the image above, when using the this feature,
-the Scheduler parses the DAG files, serializes them in JSON format and saves
them in the Metadata DB
-as :class:`airflow.models.serialized_dag.SerializedDagModel` model.
+the :class:`~airflow.jobs.scheduler_job.DagFileProcessorProcess` in the
Scheduler
+parses the DAG files, serializes them in JSON format and saves them in the
Metadata DB
+as :class:`~airflow.models.serialized_dag.SerializedDagModel` model.
The Webserver now instead of having to parse the DAG file again, reads the
serialized DAGs in JSON, de-serializes them and create the DagBag and uses it
-to show in the UI.
+to show in the UI. And the Scheduler does not need the actual DAG for making
Scheduling decisions,
+instead of using the DAG files, we use Serialized DAGs that contain all the
information needing to
+schedule the DAGs from Airflow 2.0.0 (this was done as part of :ref:`Scheduler
HA <scheduler:ha>`).
One of the key features that is implemented as the part of DAG Serialization
is that
instead of loading an entire DagBag when the WebServer starts we only load
each DAG on demand from the
Serialized Dag table. This helps reduce Webserver startup time and memory. The
reduction is notable
when you have large number of DAGs.
-You can enable the source code to be stored in the database to make it
completely independent from DAG files.
+You can enable the source code to be stored in the database to make Webserver
completely independent from DAG files.
Review comment:
```suggestion
You can enable the source code to be stored in the database to make the
Webserver completely independent of the DAG files.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]