git clone https://github.com/REZ-OAN/lb-xdp-poc.git
Navigate to the lb-xdp-poc
directory (root directory for the application)
make build_client
make build_lb
make build_server
To interact with bpf_maps we have to convert the bpf
code into go and object file.github.com/cilium/ebpf/cmd/bpf2go
this module helps us to do this.Navigate to lb-backend
.
To generate execute the following command :
go generate
This will generate the necessary files for you.
You Will See these logs :
Navigate to lb-backend
. To build execute the following command :
go build
Navigate to lb-frontend
. To install necessary packages execute the following command:
npm i
To see the hands on demonstration visit HandsOn load_balancer_xdp