serving icon indicating copy to clipboard operation
serving copied to clipboard

activator CPU usage

Open ohkojai opened this issue 8 years ago • 3 comments

Hey folks. I'm running knative on my local dev cluster (via Docker for Mac, hyperkit). I noticed that CPU usage went through the roof when I installed it. So I investigated, and it looks like there are 3 activator pods running, and each one is consuming a full cpu core's worth of time (my machine has 4 cores).

Is this expected behavior? Is there a way I can make activator consume fewer CPU cycles? Is there a reason for this behavior (if expected)?

Thank you!

ohkojai avatar Nov 28 '18 02:11 ohkojai

@zhaytee I thought we just reduced this back to 1 (except for testing).

I also just merged a PR that should impose resource constraints well below this. Try syncing?

mattmoor avatar Nov 28 '18 02:11 mattmoor

@mattmoor Thanks for the reply. I had installed knative 0.2.1 (the nomon variant), but I'll try installing 0.2.2 now. Do you think that'll include the resource constraints you're referring to?

ohkojai avatar Nov 28 '18 02:11 ohkojai

@mattmoor Got my answer! CPU usage is way down since installing 0.2.2. :) Thank you!

ohkojai avatar Nov 28 '18 02:11 ohkojai