Kwafoor commented on pull request #18498:
URL: https://github.com/apache/flink/pull/18498#issuecomment-1062527594
> This change to display flink application cpu resources used so the user
can know and adjust flink resources. This feature is particularly useful if
multiple applications share resources in cluster like yarn.
```
metrics.<Double, Gauge<Double>>gauge("Load", mxBean::getProcessCpuLoad);
metrics.<Long, Gauge<Long>>gauge("Time", mxBean::getProcessCpuTime);
```
The metrics above is about how much resources flink taskmanager used in
machine not cluster.If machine is not same in cluster, it's too hard to know
how cores flink used in cluster, the machine cores is different.
And by this change, user can calculate the cpu efficiency of flink
application.
--
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]