Traffic management

Service routes and version subsets should be in place given the destination rules applied in Lab 3. If they are not present, re-apply the destination rules:



Start managing traffic routes

Some basics to get us started.

Send all requests to Productpage v1

Using Meshery, apply custom configuration.

Refresh BookInfo productpage

Send all requests to Productpage v2

Using Meshery, apply custom configuration.

Refresh BookInfo productpage.

Traffic routing based on user or user-agent type


Redirect requests from mobile devices

Set your browser to mimic a mobile device. Enable Developer tools, if need. Refresh BookInfo productpage.

Redirect requests based on HTTP header information

Example of using user information from HTTP headers to redirect requests.

Traffic Mirroring with Istio

You will need to generate load on BookInfo's productpage service. See Lab 4 for instructions for running a performance test.

Incrementally increase the traffic split percentage to the higher version service #. Start at 20% traffic split

Move to 50%. Observe in Meshery.

Injecting Latency

Acknowledging the fallacy that the network is always reliable, you will intentionally cause a little chaos.

Exploring timeouts with Reviews service

Note Istio Proxy's default timeout settings.

Exploring timeouts with Ratings service

Retries

Overcoming the latency issue.

Set 5 retry attempts and a 3 second timeout


Alternative: Manual installation

Follow these steps if the above steps did not work



Traffic management with Istio

If you haven't forked or cloned this repository, please do so now:

Route all traffic to version V1

Route all traffic to version V2

Traffic routing based on user or user-agent type

Redirect requests from mobile devices

Redirect requests based on Cookie data

NEXT CHAPTER

Getting Started

Layer5, the cloud native management company