[MXS-4716] Implement low-impact info level log Created: 2023-08-16  Updated: 2023-09-05  Resolved: 2023-09-05

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 6.4.9

Type: Task Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-189, MXS-SPRINT-190

 Description   

There is a need for a low-impact info logging that is capable of filtering out unwanted message. Currently it is not feasible to enable log_info in production or high load situations as the logging mechanism is a bottleneck that serializes all threads behind one global mutex. Even if the logging is made lock-free, the sheer volume of messages becomes the next, and often the only, problem. This means that there needs to be a mechanism with which log messages can be selectively chosen for logging.

This could be built on top of the session_trace feature that already collects a trace log in memory before writing it to the log when the session is closed under abnormal conditions. The filtering can be done either when the session is about to close or when some other predefined filtering condition is met (e.g. in-memory log is about to overflow).



 Comments   
Comment by markus makela [ 2023-09-05 ]

Added session_trace_match that can be used to limit the log_info output to specific sessions that log a message that matches the pattern.

Generated at Thu Feb 08 04:30:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.