Skip to content

support loadBalanced/loadBalancerPort #2316

Description

Proposal

When exposing the mongodb cluster via mongos/AWS NLBs, we have the issue that we either risk CursorNotFound and similar errors, use session stickiness or expose one NLB per mongos.

There is another option called load_balancer_support.

We can configure most of it, but the issue is, that the LoadBalancer is using the 27017 port and the whole setup doesn't expect an additional loadBalancerPort anywhere. The proxy protocol can be enabled on the AWS NLB but it is not directly possible to configure it to forward requests to the loadBalancerPort.

Use-Case

We would like to use only one NLB (costs) instead of mongos-times the amount. But for this the mongo client needs the loadBalanced=true flag (if not using stickiness) which then again requires additional settings as described before.

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions