eejbyfeldt commented on pull request #17821:
URL: https://github.com/apache/airflow/pull/17821#issuecomment-905421759


   > Nice work! Could you provide steps on how to test the performance locally?
   
   Yes, here is what i did:
   
   In order to run the webserver locally I did the following.
   
   Build and install airflow in a venv
   ```
   $ python -m venv .venv
   $ source .venv/bin/activate
   $ pip install .
   ```
   
   initialize the db and add a user
   ```
   $ airflow db init
   $ airflow users create \
       --username admin \
       --role Admin \
       --firstname test \
       --lastname airflow \
       --email '' \
       --password admin
   ```
   
   and compile the static assets in airflow (requires yarn and nodejs)
   ```
   $ airflow/www/compile_assets.sh
   ```
   
   Then I stated the webserver locally
   ```
   $ airflow webserver
   ```
   The used a browser and went to `localhost:8080` and opened the example dag 
of `example_task_group` to get a dag with some task groups.  This dag is not 
really large enough where it is really slow, but the extra calls to `draw` and 
increase render time show up in the performance tab of the developer tools in 
Firefox (I am sure other browsers have similar features). I mostly used the 
flame chart 
(https://developer.mozilla.org/en-US/docs/Tools/Performance/Flame_Chart) to 
discover what caused the slowness.
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to