green-metrics-tool
green-metrics-tool copied to clipboard
Docker container network reporter data is not correctly mapped into phase
If a network transfer happens very close to the end of a phase it can happen that the cgroup reports the transferred data at a minimal later time than the process that initiated it ends.
Example: https://metrics.green-coding.berlin/stats.html?id=b746e03d-9f24-4950-949f-62d66b55df53
The image shows that the phase RUNTIME
ends and the curl
process has already returned with a exit-code = 0, but the cgroup reports a later timestamp.
Why is this happening? Since we are not on a distributed system here, should the cgroup time not be the same as the time in the python process?