NSX controller is an advanced distributed state management system that provides control plane functions for NSX logical switching and routing functions. It serves as the central control point for all logical switches within a network and maintains information about all hosts, logical switches (VXLANs), and distributed logical routers. Controllers are required if you are planning to deploy 1) distributed logical routers or 2) VXLAN in unicast or hybrid mode. In cross-vCenter NSX, once the NSX Manager is assigned the primary role, its controller cluster becomes the universal controller cluster for the whole cross-vCenter NSX environment.

No matter the size of the NSX Data Center for vSphere deployment, create three NSX Controller nodes in each NSX Controller cluster. Having a different number of controller nodes is not supported.

The cluster requires that each controller's disk storage system has a peak write latency of less than 300 ms, and a mean write latency of less than 100 ms. If the storage system does not meet these requirements, the cluster can become unstable and cause a system downtime.

Starting in NSX Data Center for vSphere 6.4.2, you can configure DNS, NTP, and syslog servers for the NSX Controller cluster. The same settings apply to all NSX Controller nodes in the cluster. You can configure these settings before you have any NSX Controller nodes deployed, or any time after they are deployed. See "Configure DNS, NTP, and Syslog for the NSX Controller Cluster" in the NSX Administration Guide for more information.
Important: If you have an invalid configuration (for example, unreachable NTP servers), and then deploy a controller, the controller node deployment fails. Verify and correct the configuration and deploy the controller node again.

The NSX Controller cluster DNS settings override any DNS settings configured on the controller IP pool.

Prerequisites

  • Verify that an NSX Manager appliance is deployed and registered with a vCenter Server system.
  • Determine the IP pool settings for your controller cluster, including the gateway and IP address range. DNS settings are optional. The NSX Controller IP network must have connectivity to the NSX Manager and to the management interfaces on the ESXi hosts.

Procedure

  1. Using the vSphere Web Client, log in to the vCenter Server system registered with the NSX Manager that will become the primary NSX Manager.
    If the vCenter Server systems in your cross-vCenter NSX environment are in Enhanced Linked Mode, you can access any associated NSX Manager from any linked vCenter Server system by selecting it from the NSX Manager drop-down menu.
  2. Navigate to Networking & Security > Installation and Upgrade > Management > NSX Managers.
  3. Select the NSX Manager that will become the primary NSX Manager
    If your vCenter Server systems are in Enhanced Linked Mode, you will see all associated NSX Managers listed here.
  4. Click NSX Controller Nodes or go to the NSX Controller nodes section.
  5. Click Add.
  6. Enter the NSX Controller settings appropriate to your environment.

    For example, add a controller with the following settings:

    Field Example Value
    NSX Manager 192.168.110.42
    Name controller-1
    Datacenter Datacenter Site A
    Cluster/Resource Pool Management & Edge Cluster
    Datastore ds-site-a-nfs 01
    Host esxmgt-01a.corp.local
    Folder NSX Controllers
    Connected To vds-mgt_Management
    IP Pool controller-pool
    Connect the NSX Controller nodes to a vSphere Standard Switch or vSphere Distributed Switch port group which is not VXLAN-based, and has connectivity over IPv4 to the NSX Manager, other controllers, and to hosts.
  7. If you have not already configured an IP pool for your controller cluster, configure one now by clicking Create New IP Pool or New IP Pool.

    Individual controllers can be in separate IP subnets, if necessary.

    For example, add an IP pool with the following settings:

    Field Example Value
    Name controller-pool
    Gateway 192.168.110.1
    Prefix Length 24
    Static IP Pool 192.168.110.31-192.168.110.35
  8. Enter and reenter a password for the controller.
    Note: Password must not contain the username as a substring. Any character must not consecutively repeat three or more times.
    The password must be at least 12 characters and must follow three of the following four rules:
    • At least one uppercase letter
    • At least one lowercase letter
    • At least one number
    • At least one special character
  9. After the deployment of the first controller is finished, deploy two additional controllers.

    Having three controllers is mandatory. Configure a DRS anti-affinity rule to prevent the controllers from residing on the same host.

Results

When successfully deployed, the controllers have a Connected status and display a green check mark.

If the deployment is not successful, see "NSX Controller Deployment Issues" in the NSX Troubleshooting Guide.