Skip to content

Feature request: Even distribution of IP addresses, when multiple subnets per AZ are available #2622

@peanball

Description

@peanball

Is your feature request related to a problem? Please describe.

See background in "additional context" below

When a BOSH network contains multiple subnets for the same AZ, it will create VMs distributed into the specified AZs with even distribution. It will however take addresses from the first subnet, until that subnet is exhausted / filled. Only then will it move on to the next subnet, etc.

It is understood that this is an additional feature and should not change default behavior.

Describe the solution you'd like
It would be nice if BOSH could evenly distribute VMs into all available subnets evenly, as it does for AZs.

Describe alternatives you've considered

We are currently assigning static IP addresses manually from known pools, based on the subnets provided by the BOSH cloud config, and assign them manually.

Additional context

When deploying CF using BOSH on hyperscalers, very large CF foundations require NAT gateways in order to manage the apps' egress requests.

NAT gateways are finite resources and can be exhausted with connections. Using further NAT gateways requires separate subnets, at least on AWS and some other hyperscalers. In order to divide egress traffic onto these multiple NAT gateways, subnets are created, each of which is tied to a NAT gateway.

This is also why the even distribution of VMs to subnets becomes important, as it in turn distributes the egress from those VMs to the different NAT gateways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for Changes | Open for Contribution

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions