felipeangelimvieira commented on issue #18041:
URL: https://github.com/apache/airflow/issues/18041#issuecomment-921943148


   So I found out that my metadata database was using 100% cpu while running 
dags with multiple tasks in parallel, such as the example above. I'm using 
Azure PostgresSQL and the official airflow helm chart with pgbouncer enabled. 
   
   Increasing the database may solve the issue, but instead I increased the 
AIRFLOW__SCHEDULER__JOB_HEARTBEAT_SEC and the problem was solved. 
   
   While I'm not sure, it's possible that the heatbeat method of BaseJob is the 
one overloading the database. When the database is running out of CPU, the 
default heartbeat takes longer than heartrate * 2.1 (the default in is_alive 
method of BaseJob) and the scheduler kills the tasks.
   
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to