Virtual Service Placement Settings
Due to the distributed nature of Avi Service Engines, the Avi Controller will directly extend an Avi Service Engine’s NICs to the virtual service and pool member IP networks.
The Avi Controller enables the user to make this network attachment decision manually by providing options on the Virtual Service Placement Settings menu in conjunction with the static routes. The related UI configuration is discussed in detail under the Configuration section.
Consider a use case with the following networks, as discovered by the Avi Controller. The discovered networks are considered as directly-connected networks by the Avi Controller.
Servers on an External Network
Virtual service placement will fail without a static route to the remote server.
Servers on the Discovered Network
By default, a Service Engine will directly extend its connectivity to the server network by adding a NIC. To force an SE to reach a server by Layer 3, select Prefer Static Routes on Virtual Service Placement Settings and configure a static route for the server IP address.
Note: The first option on Virtual Service Placement Settings does not apply to the virtual IP unless the second option is selected.
Virtual Service IP on the Discovered Network
By default, an SE will extend its connectivity to the virtual service IP network directly by adding a NIC. To force an SE to attach to the selected network for a virtual service IP, select both Prefer Static Routes and Use Routes for Network Resolution of VIP on Virtual Service Placement Settings and configure a static route for the virtual service IP.
In this case, the Layer 3 switch should have a proper static route entry to reach the virtual service.
Note: In this example, choosing the second option without choosing the first will have no effect on the virtual service IP network selection.
The Virtual Service Placement Settings menu will be displayed during the initial installation menu of the Avi Controller or can be changed after the installation by navigating to Infrastructure > Cloud and clicking on the edit icon. The Static Routes menu is also available in the same location.
For the placement settings, click on the edit icon on the right end of the cloud and for the static routes menu, click on the name of the cloud.
The screenshots for configuration in VMware and Linux server clouds are shown below.
Note: Virtual Service Placement Settings are configured on a per-cloud basis.