Virtual Service Placement Settings
Due to the distributed nature of Avi Service Engines, Avi Controller will directly extend Avi Service Engine’s NICs to the virtual service IP network and pool member networks.
Avi Controller allows an user to make this network attachment decision manually by providing options on the Virtual Service Placement Settings menu in conjunction with the static routes. Related UI configuration is discussed in detail under the Configuration section.
Consider an use case with the following discovered networks by Avi Controller. The discovered networks are considered as directly connected networks by Avi Controller.
Servers on an External Network
The 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. In order to force a 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, a SE will extend its connectivity to the virtual service IP network directly by adding a NIC. To force a 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 Avi Controller or you can change it 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 as shown below.
Note: Virtual Service Placement Settings are configured on a per-cloud basis.