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 2021/03/02 11:52:54 UTC

[GitHub] [airflow] jagusztinl opened a new issue #14559: Airflow worker pods starts very slow because of K8s init container

jagusztinl opened a new issue #14559:
URL: https://github.com/apache/airflow/issues/14559


   <!--
   
   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**:
   
   2.0.1
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1-5-g76a04fc", GitCommit:"c66c03f3012a10f16eb86fdce6330433adf6c9ee", GitTreeState:"clean", BuildDate:"2021-02-13T03:54:59Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
   Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.3", GitCommit:"9cdca7b", GitTreeState:"clean", BuildDate:"2020-10-02T23:12:03Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
   
   **Environment**:
   
   
   - **Cloud provider or hardware configuration**:
   Azure+Openshift
   
   - **OS** (e.g. from /etc/os-release):
   NAME="Red Hat Enterprise Linux"
   VERSION="8.3 (Ootpa)"
   
   - **Kernel** (e.g. `uname -a`):
   xlocalhost.localdomain 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
   
   - **Install tools**:
   - HELM
   - **Others**:
   
   **What happened**:
   
   helm install airflow airflow --set executor=KubernetesExecutor.....
   
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   oc get pods:
   examplebranchoperatorbranching.405a5270d25b4783a219c48e2f9fc267   0/1     Init:1/2   0          101s
   
   worker pods are starting very slow.
   investigated the logs, the k8s init container takes a lot of time to start:
   nami    INFO  Initializing airflow-worker
   airflow INFO  ==> No injected configuration files found. Creating default config file...
   airflow INFO  ==> Configuring Airflow database...
   airflow INFO  ==> Setting Airflow Fernet key...
   airflow INFO  ==> Deploying Airflow from scratch...
   postgre INFO  Trying to connect to PostgreSQL server
   postgre INFO  Found PostgreSQL server listening at airflow-postgresql:5432
   postgre INFO  PostgreSQL server listening and working at airflow-postgresql:5432
   airflow INFO  ==> Waiting for Airflow Webserver host...
   airflow INFO 
   airflow INFO  ########################################################################
   airflow INFO   Installation parameters for airflow-worker:
   airflow INFO     Webserver URL: airflow:8080
   airflow INFO   This installation requires no credentials.
   airflow INFO  ########################################################################
   airflow INFO 
   nami    INFO  airflow-worker successfully initialized
   
   How to make it faster?
   
   **How to reproduce it**:
   
   Use Airflow with kubernetes executor and check worker pod starting time.
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Every time
   
   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] eladkal closed issue #14559: Airflow worker pods starts very slow because of K8s init container

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


   


-- 
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-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] jagusztinl commented on issue #14559: Airflow worker pods starts very slow because of K8s init container

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


   I have been found that the init container stops here for 30 secs:
   nami    INFO  Initializing airflow-worker
   airflow INFO  ==> No injected configuration files found. Creating default config file...
   
   How to make this faster?


----------------------------------------------------------------
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 #14559: Airflow worker pods starts very slow because of K8s init container

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


   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