You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/16 11:33:41 UTC

[GitHub] [airflow] RafayAK opened a new issue #13102: Too many workers being created on ARM platform

RafayAK opened a new issue #13102:
URL: https://github.com/apache/airflow/issues/13102


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**:
   1.10.13
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
    Running on Nvidia Jetson Xavier (ARMv8) 
   - **OS** (e.g. from /etc/os-release):
   Ubuntu 18.04.5 LTS
   - **Kernel** (e.g. `uname -a`):
    `4.9.140-tegra #1 SMP PREEMPT Thu Jun 25 21:22:12 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux`
   - **Install tools**:
   `- pip install apache-airflow --use-feature=2020-resolver`
   - **Others**:
   Running in a virtual pip environment 
   
   **What happened**:
   I am seeing very weird behavior when it comes to the number of worker threads created on my Jetson Xavier ARM platform. Airflow webserver should create a default of 4 workers but for some reason, **_it's creating 24 worker processes_**!
   
   Following are the results from running `airflow webserver -p 8586`
   ![image](https://user-images.githubusercontent.com/17025191/102342173-afc01480-3fba-11eb-8544-85cee9722f47.png)
   
   webserver logs show only 4 workers are created:
    
   ![image](https://user-images.githubusercontent.com/17025191/102342664-63290900-3fbb-11eb-841b-c8fbcc60c0e5.png)
   
   
   
   Running `airflow webserver -p 8586 -w 1` still **_creates 8 worker processes_**:
   ![image](https://user-images.githubusercontent.com/17025191/102342458-10e7e800-3fbb-11eb-8bdb-f9f1f800b206.png)
   
   even though, the webserver logs show only 1 worker is created
   ![image](https://user-images.githubusercontent.com/17025191/102342513-26f5a880-3fbb-11eb-8cae-5ccd90105f84.png) 
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   
   
   Running Airflow on an x86 platform I don't  see this behavior:
   
   Here's the result of running `airflow webserver -p 8586`:
   ![image](https://user-images.githubusercontent.com/17025191/102342908-bc913800-3fbb-11eb-94da-6bdae18a3f04.png)
   
   
   Here's the result of running `airflow webserver -p 8586` on x86
   ![image](https://user-images.githubusercontent.com/17025191/102343021-ddf22400-3fbb-11eb-97da-b52aef8a8b49.png)
   
   
   <!-- What do you think went wrong? -->
   Some default value is being overridden on ARM
   **How to reproduce it**:
   Run on ARM platform
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


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



[GitHub] [airflow] RafayAK commented on issue #13102: Too many workers being created on ARM platform (Nvidia Jetson Xavier)

Posted by GitBox <gi...@apache.org>.
RafayAK commented on issue #13102:
URL: https://github.com/apache/airflow/issues/13102#issuecomment-747905108


   Any idea where I should look to resolve this issue?


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



[GitHub] [airflow] potiuk closed issue #13102: Too many workers being created on ARM platform (Nvidia Jetson Xavier)

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #13102:
URL: https://github.com/apache/airflow/issues/13102


   


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



[GitHub] [airflow] potiuk commented on issue #13102: Too many workers being created on ARM platform (Nvidia Jetson Xavier)

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #13102:
URL: https://github.com/apache/airflow/issues/13102#issuecomment-748021760


   I believe it's just htop showing threads as processes on Arm. You can start investigating here - there are some options on disabling/enabling user threads: https://unix.stackexchange.com/questions/10362/why-does-htop-show-more-process-than-ps  - and you can compare it with what `ps` displays. I would love to hear when you investigate more @RafayAK. I close it for now as invalid but if you find that this is not the case and have some more findings, please comment here.


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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #13102: Too many workers being created on ARM platform

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #13102:
URL: https://github.com/apache/airflow/issues/13102#issuecomment-746148994


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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