You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/21 11:35:00 UTC

[jira] [Commented] (AIRFLOW-6238) Dags stats endpoint is slow and returns a large payload

    [ https://issues.apache.org/jira/browse/AIRFLOW-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17020156#comment-17020156 ] 

ASF GitHub Bot commented on AIRFLOW-6238:
-----------------------------------------

robinedwards commented on pull request #7228: [AIRFLOW-6238] Filter dags returned by dag_stats
URL: https://github.com/apache/airflow/pull/7228
 
 
   Add dag_ids parameter to the dag_stats end point and only request the
   dags on the current page. This is intended to speed up the response
   times for systems running a large number of DAGS.
   
   (cherry picked from commit 1b6128221536195f912dd813d427cceb3cdb6f7b)
   
   ---
   Issue link: WILL BE INSERTED BY [boring-cyborg](https://github.com/kaxil/boring-cyborg)
   
   Make sure to mark the boxes below before creating PR: [x]
   
   - [x] Description above provides context of the change
   - [x] Commit message/PR title starts with `[AIRFLOW-NNNN]`. AIRFLOW-NNNN = JIRA ID<sup>*</sup>
   - [x] Unit tests coverage for changes (not needed for documentation changes)
   - [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
   - [ ] Relevant documentation is updated including usage instructions.
   - [x] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
 
----------------------------------------------------------------
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:
users@infra.apache.org


> Dags stats endpoint is slow and returns a large payload
> -------------------------------------------------------
>
>                 Key: AIRFLOW-6238
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6238
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: api, ui
>    Affects Versions: 2.0.0, 1.10.6
>            Reporter: Robin Edwards
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> The dag_stats endpoint returns all dags by default. This can result in an extremely large payload ~ 3mb and slow response time when you have a lot of dags (In our case 1500+).
> The accompanying pull request adds a dag_ids get parameter to the dag_stats end point which is populated by the dags present on the page.
> Please see previous issue for task_stats AIRFLOW-6095 which has already been merged with a similar solution



--
This message was sent by Atlassian Jira
(v8.3.4#803005)