Skip to content

Draft: Apply threshold to available v4 subnets

Luis Fernandez Alvarez requested to merge feat/skip_almost_full into master

Given the current implementation, race conditions can happen when multiple machines are instantiated in the same subnet and there are no enough IPs available.

This path doesn't fix this issue, but it reduces the probability of happening by applying a certain threshold that skips the v4 subnets that are almost full.

If all the v4 subnets are over the threshold, they are all considered and the previous logic applies.

Note: this patch is currently marked as draft. To be decided whether this is the desired fix or we go for a more elaborated approach like:

Merge request reports