[SERVER-24658] Is it possible to control the resources allocated for aggregation ? Created: 19/Jun/16  Updated: 14/Jul/16  Resolved: 20/Jun/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: witmoyl Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I am working on a project with around 2m record. I use aggregation framework to manipulate the whole collection to generate a report. This aggregation query takes a while, but I don't want to block the db from serving requests from normal users. I don't mind if the generation process takes longer, so may I know if it is possible to just allocate certain system resources for one aggregation query which is supposed to take a long time ?



 Comments   
Comment by Ramon Fernandez Marina [ 20/Jun/16 ]

witmoyl, there's currently no facility to limit resources for aggregation operations, but those should not block other users or operations. If you're concerned about performance impact you may want to consider using a replica set and run your aggregation report on a secondary node.

Please note that the SERVER project is for reporting bugs for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 04:07:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.