Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass in allow_disk_usage to mongo #642

Merged
merged 1 commit into from
Nov 5, 2021
Merged

pass in allow_disk_usage to mongo #642

merged 1 commit into from
Nov 5, 2021

Conversation

tijcolem
Copy link
Contributor

@tijcolem tijcolem commented Nov 5, 2021

Fix #641

Pretty simple fix for this. I captured the debug log on mongo to verify the server accepted this optional arg and it did (see allowDiskUse in capture) so this should fix the memory exceed limit, at least according to the mongo documentation.

conn10","msg":"Slow query","attr":{"type":"command","ns":"os_docker.data_points","command":{"aggregate":"data_points","pipeline":[{"$match": {"analysis_id":"6b8b090f-d6c8-4751-b485-c293546efa4a"}},{"$group":{"_id":{"analysis_id":"$analysis_id","status":"$status"},"count":{"$sum":1}}}],"cursor":{},"allowDiskUse":true,"$db":"os_docker","lsid":{"id":{"$uuid":"2315132a-8720-4c1c-849e- 82c040c35009"}}},"planSummary":"COLLSCAN","keysExamined":0,"docsExamined":328,"cursorExhausted":true,"numYields":0,"nreturned":1,"queryHash":"793D5B3A","planCacheKey":"793D5B3A","reslen":215,"locks":{"ReplicationStateTransition":{"acquireCount": {"w":2}},"Global":{"acquireCount":{"r":2}},"Database":{"acquireCount":{"r":2}},"Collection":{"acquireCount":{"r":2}},"Mutex":{"acquireCount":{"r":2}}},"storage":{},"protocol":"op_msg","durationMillis":1}}

@tijcolem tijcolem merged commit 210d932 into develop Nov 5, 2021
@brianlball brianlball deleted the issue_641 branch April 10, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mongo Sort exceeded memory limit of 104857600
1 participant