Skip to content

Commit

Permalink
Merge pull request #928 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - ct garbage collection fixes
  • Loading branch information
UltraInstinct14 authored Jan 11, 2025
2 parents e50e998 + e19957b commit 6942479
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: sudo -E env "PATH=$PATH" make test
- run: for iface in $(ls /sys/class/net); do sudo tc filter delete dev $iface ingress >> /dev/null 2>&1 | true; sudo tc filter delete dev $iface egress >> /dev/null 2>&1 | true; done
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest-amd64
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp-ebpf
- run: docker exec -dit loxilb mkllb_bpffs
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tcp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latestu22
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp-ebpf
- run: docker exec -dit loxilb mkllb_bpffs
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
Expand Down
9 changes: 4 additions & 5 deletions cicd/wrrtcplb1/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ respArr=( "server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server2" "server2"
"server2" "server2" "server1"
"server1" "server1" "server1"
"server1" "server1" "server1"
"server1" "server2" "server2"
"server2" "server2" "server2"
"server2" "server1"
)
"server2" "server1" )

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

for i in {0..23}
for i in {0..31}
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
4 changes: 2 additions & 2 deletions pkg/loxinet/dpebpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const (

// constants
const (
dpEbpfLinuxTiVal = 10
ctGCTiValDefault = 25
dpEbpfLinuxTiVal = 5
ctGCTiValDefault = 15
ctiDeleteSyncRetries = 3
blkCtiMaxLen = 8192
mapNotifierChLen = 8096
Expand Down
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 = 24
MaxLBEndPoints = 32
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

0 comments on commit 6942479

Please sign in to comment.