On 3/24/22 12:20, Ilya Maximets wrote:
> 'conntrack - DNAT load balancing' test fails from time to time
> because not all the group buckets are getting hit.
> 
> In short, the test creates a group with 3 buckets with the same
> weight.  It creates 12 TCP sessions and expects that each bucket
> will be used at least once.  However, there is a solid chance that
> this will not happen.  The probability of having at least one
> empty bucket is:
> 
>   C(3, 1) x (2/3)^N - C(3, 2) x (1/3)^N
> 
> Where N is the number of distinct TCP sessions.  For N=12, the
> probability is about 0.023, i.e. there is a 2.3% chance for a
> test to fail, which is not great for CI.
> 
> Increasing the number of sessions to 50 to reduce the probability
> of failure down to 4.7e-9.  In my testing, the configuration with
> 50 TCP sessions didn't fail after 6000 runs.  Should be good
> enough for CI systems.
> 
> Fixes: 2c66ebe47a88 ("ofp-actions: Allow conntrack action in group buckets.")
> Signed-off-by: Ilya Maximets <[email protected]>
> ---

Thanks!  Applied and backported down to 2.13.

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to