code logic for reader.go #273
-
kepler/pkg/collector/reader.go Lines 255 to 366 in b941ce5
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@rootfs , what do you think? |
Beta Was this translation helpful? Give feedback.
-
We unlock in the end and there is no branch in between, so we don't need the defer
Yes. We have an infinity loop reading the data, as expected from this function
We don't need to create a go routine for each pod.
I think it is better to keep everything together |
Beta Was this translation helpful? Give feedback.
We unlock in the end and there is no branch in between, so we don't need the defer
Yes. We have an infinity loop reading the data, as expected from this function
As @rootfs said before, we must reset the counters every time that we will read the data from eBPF
We don't need to create a go routine for each pod.
I think it is better to keep everythi…