Information
Within my cluster, I have 2 nodes running. On top of my cluster, I have a load balancer setup with the Round Robin algorithm defined. I however notice within the Digital Ocean Control Panel, it shows that only 1 of the node is Accepting traffic
whereas another shows as No traffic
.
When I dived into the insight of both nodes, I see very different set of data shows (CPU Usage, Load Average, Memory Usage, .etc.) Hence I assume, both the nodes are given traffics equaly.
Question
Can someone please help to confirm whether it’s expected to see LoadBalancer telling only 1 of the node is accepting the traffic? I expect to see both nodes are accepting traffic.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey Tommy,
From what you’re describing, it indeed is not expected for a Load Balancer configured with a Round Robin algorithm to route traffic to only one node consistently.
What I could suggest here is checking the following things:
Make sure that both nodes are passing the health checks defined in your load balancer configuration. If a node fails the health check, the load balancer will stop routing traffic to it.
Check health checks configuration:
Check that both nodes are in a ready state. Sometimes, nodes might not be ready to accept traffic due to various reasons like resource constraints, network issues, etc.
Check node status:
Verify that your pods are evenly distributed across both nodes. Sometimes, Kubernetes may not distribute pods evenly due to resource availability or affinity/anti-affinity rules. So if all pods are scheduled on 1 node, that could explain why you are seeing that specific behaviour:
Check pod distribution:
Confirm that your Kubernetes service is correctly configured to use a load balancer and is exposing the necessary ports.
Check service details:
Also, you can check tge logs for any errors that might be preventing a node from accepting traffic.
If you’ve gone through these steps and everything looks good, yet the problem persists, reaching out to the DigitalOcean support team with your findings could be the next best step.
Let me know how it goes!
- Bobby