> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Center

> Configure data center redirection in the MoEngage iOS SDK to route data to the correct cluster.

We support data redirection to our servers in different clusters. Use [*MoEngageSDKConfig*](https://moengage.github.io/ios-api-reference/Classes/MoEngageSDKConfig.html) initializer to set the data center according to your account's configuration.

<CodeGroup>
  ```swift Swift wrap theme={null}
  import MoEngageSDK

  let sdkConfig = MoEngageSDKConfig(appId: "YOUR APPID", dataCenter: .data_center_01)

  // Possible values for dataCenter:
  // .data_center_01, .data_center_02, .data_center_03,
  // .data_center_04, .data_center_05, .data_center_06 (available from SDK version 9.17.3)
  ```

  ```objective-c Objective C wrap theme={null}
  @import MoEngageSDK;

   MoEngageSDKConfig* config = [[MoEngageSDKConfig alloc] initWithAppId:@"YOUR APP ID" dataCenter:MoEngageDataCenterData_center_01];

  // Possible Values for Data Center
  typedef enum {
      data_center_01,
      data_center_02,
      data_center_03,
      data_center_04,
      data_center_05,
      data_center_06   /// Data center 06 available SDK version 9.17.3
  }MoEngageDataCenter;
  ```
</CodeGroup>

Following is the host for different data centers; please update the app's configuration according to the DataCenter in case would want to whitelist the SDK API domain:

| Data Center      | SDK Host            | Dashboard Host            |
| :--------------- | :------------------ | :------------------------ |
| data\_center\_01 | sdk-01.moengage.com | dashboard-01.moengage.com |
| data\_center\_02 | sdk-02.moengage.com | dashboard-02.moengage.com |
| data\_center\_03 | sdk-03.moengage.com | dashboard-03.moengage.com |
| data\_center\_04 | sdk-04.moengage.com | dashboard-04.moengage.com |
| data\_center\_05 | sdk-05.moengage.com | dashboard-05.moengage.com |
| data\_center\_06 | sdk-06.moengage.com | dashboard-06.moengage.com |

<Warning>
  **Important**

  Refer to the dashboard host to know the Data Center of your account. Please make sure that you consult with the MoEngage team before using this method for changing the data center in the SDK.
</Warning>

For more information about MoEngage data centers, refer to [Data Centers in MoEngage](https://www.moengage.com/docs/user-guide/data/key-concepts/data-centers-in-moengage).
