[CSHARP-4102] Configure LB for local testing Created: 17/Mar/22 Updated: 31/Mar/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Unknown |
| Reporter: | Dmitry Lukyanov (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
For local testings with RS LB should be configured similar to below where "config1", "repl1", "repl2", "repl2" just folders in the data folder.
2. Initialize config server:
mongo should be launched with "–port 27217" argument 3. Create shard RSs:
4. Initialize above rs:
mongo should be launched with "–port 27218" argument 5. Create mongos on default 27017 port:
6. Initialize cluster on mongos:
mongo should be launched with "–port 27017" argument. 7. nginx config should be:
starting nginx with: "start nginx" script. Additionally we need to update our LB test runner connection strings here. It should be set to:
The above creates sharded cluster with RS shards + config server and with single mongos. The problem is that our tests mostly require multi mongos. So this check will skip RS tests in LB tests suite. For most of cases it's enough just to disable this check, but it will lead to flakiness of some tests. We should investigate how to configure multi mongos nginx configuration. The config configuration should be similar to what we had previously and that is described in this PR
|