opened image

How to configure Cloudmodule for multiple data centers

The basic installation guide has been discussed here. In this article, we will look at how to set up multiple data centers.
You can find the complete list of changes for Cloudmodule at this link.

 

Basic Concepts

To sell services from different data centers, you need to:

  • Add data centers to Billmanager.

  • Create a processing module for each data center.

  • Add external IDs for the data centers.

  • Import tariff plans for the selected locations.

Note: We strongly recommend creating a separate data center and processing module for images to avoid potential issues.

 

Each of these steps will be discussed in detail below.

 

Adding a Data Center to Billmanager

Currently, three data centers are available:

  • Netherlands

  • Netherlands-2

  • Poland

 

With the addition of an additional data center for images, the Data Centers tab in Billmanager should look like this:

How to configure Cloudmodule for multiple data centers - 1

Note: External IDs for data centers will be added after creating the processing modules.

 

Creating a Processing Module for Each Data Center

 

After creating the data centers, you can start setting up processing modules — one for each data center. Select the product type and add the BILLmanager module, then fill in all the required fields. All modules will use the same credentials from your Zomro account.

 

Use appropriate names for the modules, as this will be convenient when importing tariff plans. Below is an example for four modules (three locations for instances and one separate for images):

 

How to configure Cloudmodule for multiple data centers - 2

 

Adding External IDs for Data Centers

 

Return to the Data Centers tab in Billmanager and add external IDs:

  • Netherlands

  • Netherlands-2

  • Poland

Important: Make sure you enter the correct values for the external IDs. These values are used to determine the boot sources of the instances. Also, check that your processing module “Poland” has a data center with the external ID “Poland” and so on.

 

For the data center intended for images, you can leave the external ID blank.

 

Importing Tariff Plans for Locations

 

In the Tariff Plans tab, click the Import button and select the corresponding processing module. It is important to import tariff plans specifically for the location that corresponds to the data center in the module. For example, tariffs for Poland will only work with the module that specifies the data center Poland.

Zomro uses a special designation for tariffs:

  • PL-1: Poland

  • NL-1: Netherlands

  • NL-2: Netherlands-2

For the product type “image,” a separate module is used. There will be only one tariff for it. 

 

How to configure Cloudmodule for multiple data centers - 3

How to configure Cloudmodule for multiple data centers - 4

How to configure Cloudmodule for multiple data centers - 5

 

 

Images

For the product “Images,” there is a special parameter region, so there is no need to create separate processing modules and data centers. To enable snapshot and backup creation, you need to import and activate the tariff for images.
Snapshots and backups will be stored in the same data center where the instances are running.

If you want to create new instances or rebuild existing ones from a backup in another data center, you need to copy the backup to that data center (a new service with a unique identifier will be created).

A copy can be created in the “Images” tab by clicking the “Copy Image” button, selecting the desired data center from the list, and specifying a name for the new image. In the order, rebuild, and rescue lists, only those images that correspond to the same data center (DC) as the instance will be displayed.

 

How to configure Cloudmodule for multiple data centers - 6

 

 

We also suggest reviewing the following articles for interacting with Cloud VPS products using the API: