[GODRIVER-2130] Test Serverless behind a load balancer to prevent test breakage Created: 16/Aug/21  Updated: 28/Oct/23  Resolved: 16/Sep/21

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.0

Type: Task Priority: Critical - P2
Reporter: Backlog - Core Eng Program Management Team Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Quarter: FY22Q2

 Description   

Summary

TheĀ serverless test suite is currently run directly against Atlas proxies, as this allows drivers to run certain test against a single proxy if required (e.g. if a failpoint needs to be tripped) and target failpoints to individual proxies (e.g. for the mongos pinning tests). However, in the near future the proxies will be moving behind a load balancer, which makes both of these impossible.

The existing load balancer tests avoid this issue by spinning up two different load balancers, one that fronts a single mongos and one that fronts multiple, and conditionally uses each as necessary. We could consider doing something similar for serverless, though it would require changes Atlas side.

Motivation
Without a solution to this problem, drivers testing of serverless will be limited.

Does this ticket have a required timeline? What is it?
All serverless instances will be moving behind load balancers in ~1 month.

Is this ticket only for tests?

Yes

Notes for Language Authors

Drivers that already implemented Serverless testing before load balancing must opt in to testing load balanced Serverless instances.

  • Pass LOADBALANCED=ON as an environment variable to .evergreen/serverless/create-instance.sh to create a load balanced AWS backed instance.
  • Use the new expansions SINGLE_ATLASPROXY_LB_URI and MULTI_ATLASPROXY_LB_URI in place of SINGLE_LB_MONGOS_URI and MULTI_LB_MONGOS_URI in load balancer tests.
  • See the Go POC for an example of updating existing Serverless.


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

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: GODRIVER-2130 Update serverless tests to run against load balancer (#719)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e7f72290ccd38cf11e5e423d213751df4bc8c819

Comment by Kevin Albertson [ 13/Sep/21 ]

PR: https://github.com/mongodb/mongo-go-driver/pull/719

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