From the course: Kubernetes: Service Mesh with Istio

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adjusting Istio load-balancing ratios

Adjusting Istio load-balancing ratios - Kubernetes Tutorial

From the course: Kubernetes: Service Mesh with Istio

Start my 1-month free trial

Adjusting Istio load-balancing ratios

- [Instructor] When we want to distribute traffic one of the things that's really interesting is that the weighting of distribution at least in the default coding service model weighting, is done based on the number of resources, so if you wanted to do 10% to one resource and 90% to another you would actually have to have one of the 10% resource and nine of the 90% resource. In Istio, with the separate routing model and the more advanced forwarding logic, we can actually define weights as a part of that resource. So in our module directory, again we're going to do an LS. We see we have a description file routing weights and our virtual service file that we're going to use to update the resource with. So if you do more on the routing weights command we can see that basically we're going to leverage an equal weighting between the two services and we're going to do that by applying our updated service as YAML, just as an example, since we're still running a version of the virtual service…

Contents