How is Content Switching Performed?
About
What is Content Switching?
With the Content Switching feature, TR7 analyzes incoming requests and routes traffic to different backend services based on various parameters such as host header information, source IP address, and path. Content Switching configurations can be defined and managed within a single vService without the need to create multiple vServices on TR7.
How to Define Content Switching?
Using the content switching feature in TR7 is quite simple. From the vService Edit screen, you can define the criteria for routing requests and select the servers you want to route them to.
Interface
vService Content Switching
Step > 1
Go to the "vServices" tab. On the opened screen, click the Add/Edit
button. The management interface for the relevant vService will open.
Step > 2
On the opened screen, click the "Conditional Backend Services" button to display a new content switching editing form.
Step > 3
Click the "Select Conditions" button to define the parameter for content switching. For example, by adding "Source IP 10.10.10.10" and "Host Header: test.tr7.com" as conditions, requests will be routed to the specified backend service only when both parameters are satisfied simultaneously.
Step > 4
Click the "Add Backend Services" button to select the server to which requests matching the criteria defined in Step > 3 will be routed. Click Save
to save the changes.
Step > 5
Content switching can be defined as many times as desired. To add a second content switching, click the "Conditional Backend Services" button again. For example, a condition such as "/admin" and the host header "test1.tr7.com" can be added, and the desired backend service can be assigned.
Warning
Content switching works sequentially. When a request is received, conditions are checked from top to bottom, and the request is directed to the backend service(s) of the first condition it matches.
The order of the added Content switching can be adjusted by clicking and holding button that resembles a directional key and drags it to the desired location.
Step > 6
Finally, if desired, the "Default Backend Services" section can be used to select the Backend Service to which the request will be forwarded if it does not match the previously set conditional rules. If "Default Backend Services" is not selected and the request does not match any conditional rules, 503 status code will be returned to the clients.