I have two application Java base and Go base application. What is the best way to build a traffic distribution that will send 30% of request traffic to Java base application and 70% to Go base application using load balancer. This activity will be built on a docker composer file or Kubernetes Is there a better way to archive this task.?
Asked
Active
Viewed 47 times
2 Answers
2
Nginx does weighted routing. If you get your traffic to Nginx you can then send it out to the containers to service the requests however you like.
upstream backend {
server backend1.example.com weight=5;
server backend2.example.com;
server 192.0.0.1 backup;
}

Tim
- 31,888
- 7
- 52
- 78
0
It is possible with different controllers like:
Additional resources:
Hope this help.

Mark
- 324
- 1
- 8