---
title: Configuring server locations
description: Configure server locations so PingDataSync connects to and fails over to endpoint servers in the same location.
component: pingdirectory
version: 10.3
page_id: pingdirectory:pingdatasync_server_administration_guide:pd_sync_config_server_locations
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/pingdatasync_server_administration_guide/pd_sync_config_server_locations.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2023-09-13T00:00:00Z
superseded_by: https://docs.pingidentity.com/pingdirectory/11.1/pingdatasync_server_administration_guide/pd_sync_config_server_locations.html
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configuring server locations

## About this task

PingDataSync supports endpoint failover, which is configurable using the `location` property on the external servers. By default, the server prefers to connect to, and failover to, endpoints in the same location as itself. If there are no location settings configured, PingDataSync will iterate through the configured list of external servers on the Sync Source and Sync Destination when failing over.

|   |                                                                       |
| - | --------------------------------------------------------------------- |
|   | Location-based failover is only applicable for LDAP endpoint servers. |

## Steps

1. On PingDataSync, run the `dsconfig` command to set the location for each external server in the Sync Source and Sync Destination. For example, the following command sets the location for six servers in two data centers, `austin` and `dallas`.

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:1389 \
     --set location:austin
   ```

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:2389 \
     --set location:austin
   ```

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:3389 \
     --set location:austin
   ```

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:4389 \
     --set location:dallas
   ```

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:5389 \
     --set location:dallas
   ```

   ```shell
   $ bin/dsconfig set-external-server-prop \
     --server-name example.com:6389 \
     --set location:dallas
   ```

2. Run `dsconfig` to set the location on the Global Configuration. This is the location of PingDataSync itself. In this example, set the location to `austin`.

   ```shell
   $ bin/dsconfig set-global-configuration-prop \
     --set location:austin
   ```
