loadbalance svc loopbacks - merge jefferson #314
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the destination should loadbalance across all targets
example flows
Multiple targets on node
/ # ovs-ofctl dump-flows br-int -OOpenFlow13 table=6 | grep 10.106.172.81
cookie=0x0, duration=1177.825s, table=6, n_packets=25, n_bytes=1966, send_flow_rem priority=102,tcp,reg6=0x1,reg7=0,metadata=0/0x200,nw_src=11.3.56.37,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.37->ip_dst,dec_ttl,set_field:10.106.172.81->ip_src,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x0, duration=1175.826s, table=6, n_packets=12, n_bytes=950, send_flow_rem priority=102,tcp,reg6=0x1,reg7=0x1,metadata=0/0x200,nw_src=11.3.56.38,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.38->ip_dst,dec_ttl,set_field:10.106.172.81->ip_src,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x0, duration=1175.826s, table=6, n_packets=25, n_bytes=2045, priority=100,tcp,reg6=0x1,reg7=0x2,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.69->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x21, duration=1175.811s, table=6, n_packets=6, n_bytes=475, send_flow_rem priority=100,tcp,reg6=0x1,reg7=0x1,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.38->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x1f, duration=1177.800s, table=6, n_packets=6, n_bytes=475, send_flow_rem priority=99,tcp,reg6=0x1,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.37->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
Single target on node
cookie=0x0, duration=809.410s, table=6, n_packets=37, n_bytes=2916, send_flow_rem priority=102,tcp,reg6=0x1,reg7=0x2,metadata=0/0x200,nw_src=11.3.56.69,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.69->ip_dst,dec_ttl,set_field:10.106.172.81->ip_src,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x1f, duration=809.410s, table=6, n_packets=0, n_bytes=0, send_flow_rem priority=100,tcp,reg6=0x1,reg7=0x2,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.69->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x0, duration=809.410s, table=6, n_packets=20, n_bytes=1636, priority=100,tcp,reg6=0x1,reg7=0x1,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.38->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
cookie=0x0, duration=811.440s, table=6, n_packets=5, n_bytes=409, priority=99,tcp,reg6=0x1,metadata=0/0x200,nw_dst=10.106.172.81,tp_dst=80 actions=set_field:8080->tcp_dst,set_field:11.3.56.37->ip_dst,dec_ttl,load:0xa6aac51->NXM_NX_REG8[],load:0x5->NXM_NX_REG12[],ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[])),write_metadata:0x400/0x400,goto_table:7
Signed-off-by: Madhu Challa challa@gmail.com