Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2830

Record both FaaS and container metadata when both are present

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: FaaS, Handshake
    • Needed
    • Hide

      Summary of necessary driver changes

      •  Drivers must ensure that both FaaS and container metadata is collected when both are present

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      Show
      Summary of necessary driver changes  Drivers must ensure that both FaaS and container metadata is collected when both are present Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed) https://github.com/mongodb/specifications/commit/921232976f9913cf17415b5ef937ee772e45e6ae
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5638 Backlog
      CXX-3074 Backlog
      CSHARP-5199 Backlog
      GODRIVER-3283 Backlog
      JAVA-5541 Backlog
      NODE-6288 Backlog
      MOTOR-1342 Duplicate
      PYTHON-4574 Done
      PHPLIB-1490 Blocked
      RUBY-3518 Backlog
      RUST-2000 Fixed 3.2.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-5638 Backlog CXX-3074 Backlog CSHARP-5199 Backlog GODRIVER-3283 Backlog JAVA-5541 Backlog NODE-6288 Backlog MOTOR-1342 Duplicate PYTHON-4574 Done PHPLIB-1490 Blocked RUBY-3518 Backlog RUST-2000 Fixed 3.2.0

      Summary

      The FaaS detection logic added in DRIVERS-2209 can mistakenly identify EKS as AWS Lambda.

      For example in HELP-54555, this connection handshake metadata was sent even though the app was not using Lambda or using 256MB memory:

      "env": {"name": "aws.lambda", "region": "us-east-1", "memory_mb": 256}

      Instead the app was hosted in EKS with 2 GB memory. CPU memory config from k8s container is as follows:

      resources:
         requests:
           memory: 2Gi
           cpu: 1000m
         limits:
            memory: 5Gi
            cpu: 5000m
      

      Motivation

      How does this affect the end user?

      This behavior is confusing for users, support engineers, and results in potentially unwanted changes in MongoClient behavior (eg serverMonitoringMode).

      How likely is it that this problem or use case will occur?

      Unknown. Need to investigate EKS to reproduce.

      Acceptance Criteria

      Investigate EKS to reproduce and fix false positives. Audit GCP, Azure, and other platform detection logic to see if those can be improved too.

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Steve Silvester Steve Silvester
            KeAna Moutra KeAna Moutra
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: