[SERVER-70664] Add internal helper command "getAllClusterParameters" 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: |
|
||||||||
| Assigned Teams: |
Server Security
|
||||||||
| Participants: | |||||||||
| Description |
|
In one case of addShard and in the ClusterServerParameterRefresher, we fetch all cluster parameters. Currently, we have to perform one call of getClusterParameter for each tenant, which scales linearly in network calls with the number of tenants. getAllClusterParameters would fetch all cluster parameters for all tenants in one network call, and return an object which looks like: {<tenant-id-1>: [{_id: "cluster-parameter-1", clusterParameterTime: <timestamp>, <param-field-1>: <val>, ...}, ...], ...}. |