BasPH commented on PR #39650:
URL: https://github.com/apache/airflow/pull/39650#issuecomment-2139125016

   Question about this PR: Memory and CPU are reported as a percentage of the 
available memory/CPU on the system, so to understand actual memory/CPU 
consumption (expressed in bytes/# of cores) you additionally need metrics on 
how much memory/CPU is available to the system.
   
   However... even if I have such metrics on available resources, since this PR 
only reports consumption on a DAG and task level (not task instance/mapped task 
instance), I'm unsure how useful it is to link those up. Additionally, with 
tasks that can run on different hardware, we could see different percentages 
while multiple instances of a task could consume the same amount of resources.
   
   Wouldn't it be more useful to report on `psutil.virtual_memory().total * 
psutil.memory_percent()` to get consumption in bytes/# of cores? That way we 
can compare apples with apples.


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