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 - ct garbage collection fixes #928

Merged
merged 5 commits into from
Jan 11, 2025
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/basic-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/tcp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions cicd/wrrtcplb1/validation.sh
Original file line number Diff line number Diff line change
@@ -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
9 changes: 5 additions & 4 deletions cicd/wrrtcplb2/validation.sh
Original file line number Diff line number Diff line change
@@ -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
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
@@ -99,8 +99,8 @@ const (

// constants
const (
dpEbpfLinuxTiVal = 10
ctGCTiValDefault = 25
dpEbpfLinuxTiVal = 5
ctGCTiValDefault = 15
ctiDeleteSyncRetries = 3
blkCtiMaxLen = 8192
mapNotifierChLen = 8096
2 changes: 1 addition & 1 deletion pkg/loxinet/rules.go
Original file line number Diff line number Diff line change
@@ -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
Loading