Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-05-18 Thread Han Zhou
On Mon, May 18, 2020 at 3:39 AM Numan Siddique wrote: > > > On Mon, May 18, 2020 at 3:34 PM Maciej Jozefczyk > wrote: > >> Hello, >> >> Continuing this topic. >> With introducing selection_fields to OVN Load_Balancer row we moved the >> responsibility of calculating the hash to ovs-vswitchd >> T

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-05-18 Thread Numan Siddique
On Mon, May 18, 2020 at 3:34 PM Maciej Jozefczyk wrote: > Hello, > > Continuing this topic. > With introducing selection_fields to OVN Load_Balancer row we moved the > responsibility of calculating the hash to ovs-vswitchd > That means we will have potential performance penalty because of that. >

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-05-18 Thread Maciej Jozefczyk
Hello, Continuing this topic. With introducing selection_fields to OVN Load_Balancer row we moved the responsibility of calculating the hash to ovs-vswitchd That means we will have potential performance penalty because of that. I verified what the numbers are. I took the environment created by O

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-05-11 Thread Maciej Jozefczyk
Hello, Thanks for working on this. The change for setting the selection fields for Load_Balancer has been merged upstream [1]. This change helped a lot and OVN Octavia provider driver (master) is now able to specify those fields [2] and as effect of it - is able to be properly tested with tempest

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-05-03 Thread Han Zhou
On Thu, Apr 30, 2020 at 4:12 AM Tonghao Zhang wrote: > > On Thu, Apr 30, 2020 at 2:58 PM Han Zhou wrote: > > > > Thanks Maciej for testing. > > > > On Tue, Apr 28, 2020 at 5:36 AM Maciej Jozefczyk wrote: > > > Here are my findings. > > > > > > 1) Test LB and sleep 1 second between calls: > > > .

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-30 Thread Tonghao Zhang
On Thu, Apr 30, 2020 at 2:58 PM Han Zhou wrote: > > Thanks Maciej for testing. > > On Tue, Apr 28, 2020 at 5:36 AM Maciej Jozefczyk wrote: > > Here are my findings. > > > > 1) Test LB and sleep 1 second between calls: > > ./get-data.py --lb-dest 172.24.4.58:60092 --sleep-time 1 > > > > result: ht

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-29 Thread Han Zhou
Thanks Maciej for testing. On Tue, Apr 28, 2020 at 5:36 AM Maciej Jozefczyk wrote: > Here are my findings. > > 1) Test LB and sleep 1 second between calls: > ./get-data.py --lb-dest 172.24.4.58:60092 --sleep-time 1 > > result: http://paste.openstack.org/show/792818/ > Different backeds are select

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-28 Thread Maciej Jozefczyk
Hello! Thank you for discussion and those findings. I'm replying to Han question: Numan/Maciej, in your tests did you see more than 2 buckets hit for same > 5-tuples? If the above theory is right, you should see at most 2 buckets > hit. For LB, since it uses CT and only the first packet uses the

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-24 Thread Ilya Maximets
On 4/24/20 3:19 AM, Han Zhou wrote: > Based on the discussion in OVN meeting today I did some more testing, and > here are my findings. > > - With ICMP (ping) between same source and destination it is always same > bucket selected by dp_hash. > - With "nc" specifying same TCP 5-tuples, the packe

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-23 Thread Han Zhou
Based on the discussion in OVN meeting today I did some more testing, and here are my findings. - With ICMP (ping) between same source and destination it is always same bucket selected by dp_hash. - With "nc" specifying same TCP 5-tuples, the packets can end up into different buckets. This is simi

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-21 Thread Daniel Alvarez Sanchez
Thanks Numan for the investigation and the great explanation! On Tue, Apr 21, 2020 at 9:38 AM Numan Siddique wrote: > On Fri, Apr 17, 2020 at 12:56 PM Han Zhou wrote: > > > > > > > > On Tue, Apr 7, 2020 at 7:03 AM Maciej Jozefczyk > wrote: > > > > > > Hello! > > > > > > I would like to ask you

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-21 Thread Numan Siddique
On Fri, Apr 17, 2020 at 12:56 PM Han Zhou wrote: > > > > On Tue, Apr 7, 2020 at 7:03 AM Maciej Jozefczyk wrote: > > > > Hello! > > > > I would like to ask you to clarify how the OVN Load balancing algorithm > > works. > > > > Based on the action [1]: > > 1) If connection is alive the same 'backe

Re: [ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-17 Thread Han Zhou
On Tue, Apr 7, 2020 at 7:03 AM Maciej Jozefczyk wrote: > > Hello! > > I would like to ask you to clarify how the OVN Load balancing algorithm works. > > Based on the action [1]: > 1) If connection is alive the same 'backend' will be chosen, > > 2) If it is a new connection the backend will be chos

[ovs-discuss] [OVN] OVN Load balancing algorithm

2020-04-07 Thread Maciej Jozefczyk
Hello! I would like to ask you to clarify how the OVN Load balancing algorithm works. Based on the action [1]: 1) If connection is alive the same 'backend' will be chosen, 2) If it is a new connection the backend will be chosen based on selection_method=dp_hash [2]. Based on changelog the dp_has