Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR : gh-877 Initial support for egress : patchset2 #910

Merged
merged 7 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cicd/tcplbmaxep/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ sleep 5

#configure LB

create_lb_rule llb1 20.20.20.1 --tcp=2020:8080 --endpoints=35.1.1.1:1,35.1.2.1:1,35.1.3.1:1,35.1.4.1:1,35.1.5.1:1,35.1.6.1:1,35.1.7.1:1,35.1.8.1:1,35.2.1.1:1,35.2.2.1:1,35.2.3.1:1,35.2.4.1:1,35.2.5.1:1,35.2.6.1:1,35.2.7.1:1,35.2.8.1:1,35.3.1.1:1,35.3.2.1:1,35.3.3.1:1,35.3.4.1:1,35.3.5.1:1,35.3.6.1:1,35.3.7.1:1,35.3.8.1:1,35.4.1.1:1,35.4.2.1:1,35.4.3.1:1,35.4.4.1:1,35.4.5.1:1,35.4.6.1:1,35.4.7.1:1,35.4.8.1:1
#create_lb_rule llb1 20.20.20.1 --tcp=2020:8080 --endpoints=35.1.1.1:1,35.1.2.1:1,35.1.3.1:1,35.1.4.1:1,35.1.5.1:1,35.1.6.1:1,35.1.7.1:1,35.1.8.1:1,35.2.1.1:1,35.2.2.1:1,35.2.3.1:1,35.2.4.1:1,35.2.5.1:1,35.2.6.1:1,35.2.7.1:1,35.2.8.1:1,35.3.1.1:1,35.3.2.1:1,35.3.3.1:1,35.3.4.1:1,35.3.5.1:1,35.3.6.1:1,35.3.7.1:1,35.3.8.1:1,35.4.1.1:1,35.4.2.1:1,35.4.3.1:1,35.4.4.1:1,35.4.5.1:1,35.4.6.1:1,35.4.7.1:1,35.4.8.1:1
create_lb_rule llb1 20.20.20.1 --tcp=2020:8080 --endpoints=35.1.1.1:1,35.1.2.1:1,35.1.3.1:1,35.1.4.1:1,35.1.5.1:1,35.1.6.1:1,35.1.7.1:1,35.1.8.1:1,35.2.1.1:1,35.2.2.1:1,35.2.3.1:1,35.2.4.1:1,35.2.5.1:1,35.2.6.1:1,35.2.7.1:1,35.2.8.1:1,35.3.1.1:1,35.3.2.1:1,35.3.3.1:1,35.3.4.1:1,35.3.5.1:1,35.3.6.1:1,35.3.7.1:1,35.3.8.1:1
21 changes: 11 additions & 10 deletions cicd/tcplbmaxep/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ sleep 5
code=0
servIP=( "20.20.20.1" )
servArr=(
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3" "server4"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
"server1" "server2" "server3"
)
#ep=( "31.31.31.1" "32.32.32.1" "33.33.33.1" "34.34.34.1" )
ep=( "31.31.31.1" "32.32.32.1" "33.33.33.1" "34.34.34.1" )
j=0
waitCount=0
while [ $j -le 3 ]
while [ $j -le 2 ]
do
res=$($hexec l3h1 curl --max-time 10 -s ${ep[j]}:8080)
#echo $res
Expand All @@ -46,7 +47,7 @@ done

echo "Testing Service IP: ${servIP[0]}"
lcode=0
for i in {0..31}
for i in {0..23}
do
res=$($hexec l3h1 curl --max-time 10 -s ${servIP[0]}:2020)
echo $res
Expand Down
6 changes: 3 additions & 3 deletions cicd/wrrtcplb1/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ respArr=( "server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server2" "server2"
"server2" "server2" "server1"
"server1" "server2" "server2"
"server2" "server2" "server2"
"server2" "server1"
)

for i in {0..31}
for i in {0..23}
do
res=$($hexec l3h1 curl --max-time 10 -s 20.20.20.1:2020)
echo $i:$res
Expand Down
7 changes: 3 additions & 4 deletions cicd/wrrtcplb2/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@ done
respArr=( "server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server2" "server2" "server2"
"server2" "server2" "server2"
"server2" "server2" "server2"
"server2" "server2" "server2"
"server3" "server3" "server3"
"server3" "server3" "server3"
"server3" "server1" "server1"
"server1" "server3" "server3"
"server1" "server1"
)

for i in {0..31}
for i in {0..23}
do
res=$($hexec l3h1 curl --max-time 10 -s 20.20.20.1:2020)
echo $i:$res
Expand Down
2 changes: 1 addition & 1 deletion loxilb-ebpf
2 changes: 1 addition & 1 deletion pkg/loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const (

// constants
const (
MaxLBEndPoints = 32
MaxLBEndPoints = 24
DflLbaInactiveTries = 2 // Default number of inactive tries before LB arm is turned off
MaxDflLbaInactiveTries = 100 // Max number of inactive tries before LB arm is turned off
DflLbaCheckTimeout = 10 // Default timeout for checking LB arms
Expand Down
Loading