-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Overview
Make the capacity of the PSAME task queue configurable instead of the hardcoded PSAMEQueue::kServiceQueueCapacity.
Background
SERVER-135421 gives each ServiceContext a PSAMEQueue, reached through PSAMEQueue::get(), with a fixed capacity of PSAMEQueue::kServiceQueueCapacity = 100 tasks. Publishers, such as the planner after falling back to an on-the-fly sample, drop their task when the queue is full.
Scope of Work
- Add a server parameter for the PSAME queue capacity, in tasks (positive), defaulting to 100.
- Create the ServiceContext's queue with it, and remove kServiceQueueCapacity.
Acceptance Criteria
- The capacity of the ServiceContext's PSAME queue comes from the server parameter.
- Unit tests cover a non-default capacity.
Technical Notes
- The queue is a ServiceContext decoration, built when the ServiceContext is, and a PSAMEQueue's capacity is fixed for its lifetime. Either check the parameter's value is already known at that point and make it startup-only, or create the queue lazily or make it resizable if it must be settable at runtime.
- is related to
-
SERVER-135421 implement the initial persist task
-
- Needs Scheduling
-