[SERVER-39868] Avoid throttling replica set elections Created: 27/Feb/19  Updated: 29/Oct/23  Resolved: 02/May/19

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

Type: Task Priority: Major - P3
Reporter: Maria van Keulen Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-39494 Clean up chosen Flow Control POC Closed
is depended on by SERVER-39618 Investigate and implement optimal min... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-04-22, Storage NYC 2019-05-06
Participants:

 Description   

Determine whether it is possible to isolate lock acquisitions performed by system operations in order to avoid unnecessarily throttling these lock acquisitions. If it is possible, implement these isolations.
At minimum, this ticket should make sure that throttling of writes doesn't impact replica set elections and that secondary oplog application writes do not get throttled. The work for this ticket also should include verifying that the serverStatus command is not throttled.
This ticket should also provide a framework to exclude operations from being throttled. One strategy for implementing this is to add a flag to the OperationContext that represents whether this operation should be throttled. Particular operations that are found to be inappropriate for throttling can set this flag so the mechanism can exclude them.
A check should be added here that our replication state is not primary. This handling will avoid throttling operations on secondaries.



 Comments   
Comment by Githook User [ 01/May/19 ]

Author:

{'name': 'Maria van Keulen', 'username': 'mvankeulen94', 'email': 'maria@mongodb.com'}

Message: SERVER-39868 Avoid throttling replica set elections

This patch also ensures secondaries are not throttled and provides a
framework to exclude particular operations from being throttled.
Branch: master
https://github.com/mongodb/mongo/commit/6693d9fc93d2105da44a6abb5a2aa2bb72154eeb

Comment by Maria van Keulen [ 02/Apr/19 ]

This ticket should also test that system operations that we expect should not be throttled by Flow Control are not throttled as expected.

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