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:
[37mnami [39m [32mINFO [39m Initializing airflow-worker
[36mairflow[39m [32mINFO [39m ==> No injected configuration files found.
Creating default config file...
[36mairflow[39m [32mINFO [39m ==> Configuring Airflow database...
[36mairflow[39m [32mINFO [39m ==> Setting Airflow Fernet key...
[36mairflow[39m [32mINFO [39m ==> Deploying Airflow from scratch...
[36mpostgre[39m [32mINFO [39m Trying to connect to PostgreSQL server
[36mpostgre[39m [32mINFO [39m Found PostgreSQL server listening at
airflow-postgresql:5432
[36mpostgre[39m [32mINFO [39m PostgreSQL server listening and working at
airflow-postgresql:5432
[36mairflow[39m [32mINFO [39m ==> Waiting for Airflow Webserver host...
[36mairflow[39m [32mINFO [39m
[36mairflow[39m [32mINFO [39m
########################################################################
[36mairflow[39m [32mINFO [39m Installation parameters for
airflow-worker:
[36mairflow[39m [32mINFO [39m Webserver URL: airflow:8080
[36mairflow[39m [32mINFO [39m This installation requires no credentials.
[36mairflow[39m [32mINFO [39m
########################################################################
[36mairflow[39m [32mINFO [39m
[37mnami [39m [32mINFO [39m 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:
[email protected]