Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.4.3
-
Fix Version/s: 3.4.5rc1, 4.0.0alpha1, 4.0 (plan)
-
Component/s: Server (S)
-
Labels:None
-
Epic Link:
-
Team:Team A
-
Sprint:Sprint 20
-
Story Points:0.5
Description
zbx_handle_log() function is called in process main loops to ensure proper stdin/stderr redirection after log has been rotated. However when process is not sleeping this adds unnecessary overhead, especially noticeable in pre-processing manager.
The zbx_handle_log() calls in preprocessing manager must be throttled to be called once per second. We might consider even adding now parameter to zbx_handle_log() and do throttling for all processes (though it probably has low % performance impact in sleep based main loops).