-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Service Arch
-
Fully Compatible
-
Service Arch 2024-04-15, Service Arch 2024-04-29
This will use the optimized rwmutex from SERVER-86656 to create reader-optimized hash-tables for scenarios where the hash-table is not expected to change frequently, but the values are. For synchronizing values, we can either use AtomicWord, or the hazard pointer primitive from SERVER-86657.
This will be helpful for, and should be adopted by, the following:
- Tenant migration access blockers (
SERVER-89009) - Collection sharding state (
SERVER-89434) - API version metrics (
SERVER-88968) - Top (
SERVER-89638)
- depends on
-
SERVER-86656 Create a reader-optimized reader-writer mutex
- Closed
- related to
-
SERVER-88968 Optimize `APIVersionMetrics` using `RWMutex`
- Closed
-
SERVER-89009 Optimize `TenantMigrationAccessBlockerRegistry`
- Closed
-
SERVER-89434 Reduce the cost of concurrency control for `CollectionShardingState`
- Closed
-
SERVER-89638 Make the global histogram in `Top` lock-free
- Closed