[SERVER-70663] Add internal helper command "replaceAllClusterParameters" Created: 18/Oct/22  Updated: 05/Dec/22  Resolved: 31/Oct/22

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

Type: New Feature Priority: Major - P3
Reporter: Gabriel Marks Assignee: Backlog - Security Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-70979 Complete TODO listed in SERVER-70663 Closed
Assigned Teams:
Server Security
Participants:

 Description   

In one case of addShard, we delete all of the cluster parameters on the new shard, and then set all of our cluster parameters on that shard. If t is the number of tenants, and c is the average number of set cluster parameters per tenant, this will take on the order of tc network operations, which blows up very quickly. replaceAllClusterParameters would take an object of the form {<tenant-id-1>:

{<cluster-param-1>: <val>, ...}

, ...} and would delete all existing cluster parameters, then set all given cluster parameters. This would mean we can do all of the above in one network operation. Some thought is required in terms of max BSON size, and what happens if we overrun it.


Generated at Thu Feb 08 06:16:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.