Increase default max query length
General
Escalation
General
Escalation
Description
How to test
Add mongo to monitoring
Trigger long queries (for example with aggregation)
Check QAN that queries are not truncated (if they are less than 4096 chars).
Check any another technology. Limit there should be still 2048 chars.
How to document
If there is mention about 2048 chars limit in QAN, lets change it to 4096 for Mongo. For others is persist as 2048.
has to be done before
Smart Checklist
hideActivity
Show:

Catalina Adam November 8, 2024 at 10:37 AMEdited
Updated docs with this commit in PMM3 Beta docs.
Done
Details
Details
Assignee
Reporter

Priority
Components
Labels
Needs QA
Yes
Needs Doc
Yes
Planned Version/s
Fix versions
Story Points
3
Smart Checklist Progress
3/3 - Done
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created September 18, 2024 at 11:23 AM
Updated December 2, 2024 at 3:05 PM
Resolved November 20, 2024 at 10:42 AM
For MongoDB queries, the default limit of 2048 chars is too small. There are long queries often, and also aggregation pipelines which are long.
It is very often we see the message “Example query is not successfully parsed due to the max query length limit that you set or set by default” when trying to see examples of the query in the QAN page. I suggest increasing the default value to 4096 to reduce the chances of hitting the issue.