How can I measure the performance impact of L4 vs L7 mode of LoxiLB load balancer, when it is deployed in-cluster with 5G Core ? #791
-
I want to measure, CPU usage and memory usage when LoxiLB is deployed inside Kubernetes in L4 and L7 mode. In L4, I understand that I would need to measure the metrics for loxilb pod, which does the actual load balancing. But in L7 mode as given in theis article: Only kube-loxilb is present. No loxilb pod. Does L7 only work in external mode where the docker container running outside cluster does the L7 load balancing ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
Hello. First, for loxilb L7 loadbalancing, loxilb in-cluster mode also supports it. |
Beta Was this translation helpful? Give feedback.
-
sctp L7 loadbalancing has not yet been tested in-cluster because we need to integrate with kubernetes ingress api. This is a work in progress. Tcp(http/https) L7 LB however is available currently in-cluster. Regarding L4 load-balancing in-cluster mode, it is difficult to measure exact cpu utilization by getting pod stats since it uses eBPF running in kernel space. You can try to.give this a try. |
Beta Was this translation helpful? Give feedback.
-
Usually L4 LB is deployed infront of L7 LB. But if there is no such requirement, you can deploy loxilb in-cluster and use either L4 or L7 as per your need. In L4 mode, you need to use eBPF specific tool to measure CPU usage etc like previous comment. For L7 mode, currently SCTP LB does not use eBPF so you can use normal Kubernetes specific tools to check pod CPU usage. |
Beta Was this translation helpful? Give feedback.
-
@souravpaul8 If you are curious how much CPU,Mem,Network a Pod uses, my suggestion would be to use Prometheus along with Kube-state-metrics. There are very active projects like Kube-Prometheus-Stack that lets you quickly install Prometheus and kube-state-metrics in one helm command. Once you do that, you can find out how much a Pod is using CPU, MEM, and Network. |
Beta Was this translation helpful? Give feedback.
For sctp L4 LB, you need to do install another loxilb module in the k8s nodes for in-cluster SCTP LB to work :
For L7, I am not sure what might be the exact problem.