[SERVER-61463] Create javascript library for adding and removing entries from config.shards Created: 12/Nov/21  Updated: 29/Oct/23  Resolved: 16/Dec/21

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

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2021-11-29, Server Serverless 2021-12-13, Server Serverless 2021-12-27
Participants:

 Description   

In the interim architecture, mongoq will be deployed in front of non-shardsvrs and without config servers, so we cannot use the existing addShard path to add replica sets to a serverless deployment (in the existing addShard path, mongos calls configsvrAddShard command against the config servers, who call a shardsvr-specific addShard command against the shardsvr being added).

Instead, the list of replica sets in the deployment will be available to mongoq via a new service, Rd. We are not yet sure what Rd will look like in production, but we will mock Rd in server jstests as a lightweight javascript library that is backed by a replica set.

This ticket is to start that lightweight library in a new file jstests/serverless/libs.js and add addShard and removeShard functions to it. The addShard function should create an entry in the config servers' config.shards, and the removeShard function should remove an entry from the config servers' config.shards.

This ticket should also switch to using the new addShard method in the existing tests in jstests/serverless.



 Comments   
Comment by Githook User [ 16/Dec/21 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-61463 Create javascript library for adding and removing entries from config.shards
Branch: master
https://github.com/mongodb/mongo/commit/ff09a4be4a337eb39616368d2806027233cf6f46

Generated at Thu Feb 08 05:52:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.