[SERVER-8579] Consolidate Mongod Lock/Resource Scheduling Logic Created: 14/Feb/13 Updated: 02/Aug/18 Resolved: 30/Oct/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Concurrency |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | Kaloian Manassiev |
| Resolution: | Done | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
A unified scheduling module would consolidate logic around what operations get dispatched in parallel with other operations (fsync+lock and reads, e.g.), could ultimately manage resources (limit iops per individual user op, or disk space dedicated to external sorts at once), and more. TODO: Fill out the description w/ a fuller design proposal. |
| Comments |
| Comment by Andy Schwerin [ 07/Jan/14 ] |
|
Agree, needs more specification. fsync+lock, finer granularity, like you said. The requirements are things like "critical read operations shouldn't get stuck behind undispatched writes", where critical read operations might be things like commands involved in replicaset elections. This ticket is initially about (1), but (1) and (2) are more the same than different, I think. A lock on the right to do an external sort would allow you to use one set of scheduling logic for both, i.e. |
| Comment by Dwight Merriman [ 07/Jan/14 ] |
|
does this ticket refer to: is the goal here to do #1 or #2? of course there is some overlap, but i could imagine even rewritten those being separate abstractions or notions. |
| Comment by Dwight Merriman [ 07/Jan/14 ] |
|
i think the first thing we need here is the requirements specification. i'm not clear what all is needed beyond solving fsync+lock. i suppose more hierarchy, so locks can be more granular what else? |