---
title: "Configure high availability for xConnect"
slug: "configure-high-availability-for-xconnect"
abstract: ""
---
# Configure high availability for xConnect

> [!important]
> If you are deploying a PaaS solution or if you are not going to configure a High Availability feature, skip this section.

*High Availability* is an xConnect feature that is based on [Always On availability groups](https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/always-on-availability-groups-sql-server?view=sql-server-2017) and configurable retryers.

## Configure Always On availability groups

A [Windows Server Failover Cluster (WSFC)](https://docs.microsoft.com/en-us/sql/sql-server/failover-clusters/windows/windows-server-failover-clustering-wsfc-with-sql-server?view=sql-server-2017) is required when you deploy Always On availability groups.

You must also configure [Synchronous-commit mode with automatic failover](https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-modes-always-on-availability-groups?view=sql-server-2017#SyncCommitWithAuto).

For more information about how to configure availability groups, see [Microsoft’s documentation](https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/administration-of-an-availability-group-sql-server?view=sql-server-2017).

To provide client connectivity to the database for a given availability group, you must create an [availability group listener](https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/listeners-client-connectivity-application-failover?view=sql-server-2017).

The availability group listener allows a client to connect to an availability replica without knowing the name of the physical instance of SQL Server that it is connecting to. You *must* specify the DNS name of the listener in the connection string instead of the server name. This helps your solution to automatically switch to the primary replica during a failover.

Here is an example of a connection string for an availability group listener:

```text
Data Source=tcp:SMMListener,5025;Initial Catalog=ShardMapManagerDb;User Id=sa;Password=12345;

```

## Configure the Collection database

The *Collection* database is designed to manage high read/write activity, and therefore supports sharding. The catalog of all the shards is located in the *Shard Map Manager* database. You must manually update the *\[ShardsGlobal\]* table in the catalog so that it can use listeners instead of server names.