Forum Discussion
James_Thomson
Employee
Dec 13, 2006Read cpu usage from iRule
Can anyone help me understand what the cpu command is returning?
http://devcentral.f5.com/wiki/default.aspx/iRules/cpu.html
This link says it is the cpu load. Can I read this to be the cpu usage as reported by the GUI? If so, is this number from 1 to 100?
I don't have a busy box to test it on so all I'm receiving now is zero
when HTTP_REQUEST {
log "CPU - [cpu usage 5sec]"
}I'm thinking of writing an iRule that will reject packets after cpu usage reaches 90% so the box doesn't reboot or fail over. I'll probably end up doing it with when CLIENT_ACCEPTED hoping that that will be the point the BIG-IP has to process it the least.
1 Reply
- Erick_Hammersm1Historic F5 AccountYes, this is a 1-100 measurement of TMM CPU utilization. This will show the same TMM CPU utilization that is displayed in the performance graph.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects