Reference documentation and code samples for the Network Connectivity V1 API module Google::Cloud::NetworkConnectivity::V1::InternalRange::AllocationStrategy.
Enumeration of range auto-allocation strategies
Constants
ALLOCATION_STRATEGY_UNSPECIFIED
value: 0
Unspecified is the only valid option when the range is specified
explicitly by ip_cidr_range field. Otherwise unspefified means using the
default strategy.
RANDOM
value: 1
Random strategy, the legacy algorithm, used for backwards compatibility.
This allocation strategy remains efficient in the case of concurrent
allocation requests in the same peered network space and doesn't require
providing the level of concurrency in an explicit parameter, but it is
prone to fragmenting available address space.
FIRST_AVAILABLE
value: 2
Pick the first available address range. This strategy is deterministic
and the result is easy to predict.
RANDOM_FIRST_N_AVAILABLE
value: 3
Pick an arbitrary range out of the first N available ones. The N will be
set in the first_available_ranges_lookup_size field. This strategy should
be used when concurrent allocation requests are made in the same space of
peered networks while the fragmentation of the addrress space is reduced.
FIRST_SMALLEST_FITTING
value: 4
Pick the smallest but fitting available range. This deterministic
strategy minimizes fragmentation of the address space.