envoy icon indicating copy to clipboard operation
envoy copied to clipboard

How to use cpu usage as a way of resource monitors?

Open sjtuzbk opened this issue 4 years ago • 4 comments

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?

sjtuzbk avatar Aug 02 '22 07:08 sjtuzbk

cc @KBaichoo

alyssawilk avatar Aug 02 '22 13:08 alyssawilk

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.

KBaichoo avatar Aug 02 '22 14:08 KBaichoo

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.

github-actions[bot] avatar Sep 01 '22 16:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 08 '22 20:09 github-actions[bot]