How to use cpu usage as a way of resource monitors?
Envoy's resource monitors only supports memory.:
extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
So why doesn't envoy support CPU as a resource monitor? Now I want to use cpu usage as resource monitor, how to do it?
cc @KBaichoo
why doesn't envoy support CPU as a resource monitor?
No one has gotten around to doing so yet.
Now I want to use cpu usage as resource monitor
I'm curious of the problem you're trying to solve with a CPU resource monitor, can you elaborate?
how to do it?
Would be creating a resource monitor extension for CPU. You could get this information from a few places: /proc, getrusage(), netlink. Whether we want this per thread, or for the process is another element to dig into; e.g. it's possible that a single worker gets saturated but the others are idle. Whether to do cpu usage per client e.g. to prevent one client from dominating.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.