Forum Discussion
Simon_83666
Nimbostratus
Sep 22, 2008syslog-ng & alertd CPU usage
We're having an issue with our new LTM 6400 box. With the following iRule enabled for logging, the syslog-ng & alertd processes are taking up almost 100% of one CPU during a performance testing. The second CPU which I think is dedicated to TMM is not doing much but we're not sure what can be done to reduce the CPU 00 usage without disabling logging. Is this something to do with the way the irules was written ?
when HTTP_REQUEST {
set client_ip [IP::client_addr]
set http_request [HTTP::request]
set http_request_time [clock clicks -milliseconds]
log local0. "Client connected, IP: $client_ip, HTTP request: $http_request "
}
when HTTP_RESPONSE {
set http_status [HTTP::status]
set lb_server [LB::server]
log local0. "Pool Info: $lb_server - HTTP Status: $http_status (request/response delta: [expr [clock clicks -milliseconds] - $http_request_time]ms)"
}
- hoolio
Cirrostratus
I'm curious to see Mike's response, but in the meantime... - Nicolas_Menant
Employee
logging and clock are really heavy for cpu. Do you have an idea about how much request/sec you have going through your BIGIP ? - Mike_Lowell_108Historic F5 AccountI share hoolio's sentiment about only logging when you need it, and reducing what you log. For example, based on the calculation you're doing I'll bet you're wanting to track server responses that take too long. I'd consider changing the logic such that you *only* log requests that are past a certain threshold. i.e. if it takes longer than 5000ms, log it, otherwise do nothing.
- Simon_83666
Nimbostratus
Thanks guys, I actually contacted F5 support and managed to reduce the CPU usage significantly by doing the following:
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