Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to deploy servers in multiple availability zones

In this tutorial you will learn how to create a basic distributed architecture by deploying two servers in different availability zones within Madrid. At the end, you will have both servers up and running and connected to the same network, ready to build continuity or high availability scenarios.

👍 What you get

Two operational servers, one in each availability zone, connected to the same network and ready to build a cross-zone continuity architecture.

What an availability zone is and why it matters

Availability Zones in Plenit work through independent physical datacenters in Madrid: MAD1 (Digital Realty) and MAD2 (Data4). Each zone has independent physical infrastructure (electricity, hardware, security...). Distributing components between both allows you to design services that do not depend on a single physical location.

Plenit lets you choose which zone each server is deployed in and use networks available in both zones. You decide how to distribute the infrastructure components and what continuity mechanisms you need for them.

Before creating anything, decide:

  • Which servers go in MAD1 and which in MAD2?

  • What type of network do you need?

  • What happens in your architecture if one zone goes down?

If the answer to the third question is unclear, the recommended first step is to design the architecture.

Prerequisites

  • Be registered on the platform with an active organization.

  • Have a clear architecture: which server goes in each zone and how they connect.

  • Know what type of network you need before starting (if you're not sure, review the network section of this tutorial before you begin).

Step 1. Create a Servers service

From the menu, go to Servers and enter the subscription where you want to work. Inside the service, click New Server. The creation wizard will open.

Step 2. Choose the location (MAD1)

This is the most important step. Select:

  • Region: Madrid

  • Availability zone: MAD1 (or MAD2, but remember that the other server has to be in the zone not chosen for this first server)

Choose the zone where you want to activate the server. You cannot continue without selecting a zone.

Availability Zone Selection

Step 3. Configure the server

In the different steps of server creation, you will be able to select the CPU and RAM you need, the operating system image, and the applications you want to preinstall. You can also configure disks, the backup disk (included), and additional disks.

Disk configuration

Step 4. Configure the network

You have three network types available. Choose according to your case:

Type
When to use it
HA available

Standard

General case. Flat network, all servers can see each other. Choose this option if you do not need segmentation.

Yes

VPC

When you need segmentation into layers (application, database...). Servers in different Tiers do not see each other by default.

Yes

L2

When you manage your own network services on top, usually with a VNF such as FortiGate or WatchGuard. No gateway or DNS managed by the platform.

No

Standard and VPC networks can also be configured with High Availability (HA), adding redundancy to network components between zones. You do not need to enable it for servers deployed in MAD1 and MAD2 to use the same network. We will see when to use it and how to configure it in the tutorial How to enable High Availability (HA) on the network between two availability zones.

L2 networks do not have an HA option because network services are usually managed through a VNF.

For this tutorial, create a new network with the Standard type.

Selection of "Standard" network type and network name field filled in

Step 5. Final settings

Give the server a descriptive name and add a tag with the zone. When you have multiple servers across two zones, this is what lets you identify them at a glance.

Name field filled in and option to add a tag

Click Create Server. The platform will notify you when the server is ready.

Server created with location field information (Madrid, where the two Availability Zones are located) and Network Space (Availability Zone)

Step 6. Create the second server (MAD2)

Repeat steps 2 to 5 with these differences:

  • Select MAD2 as the zone

  • When you are in the "Network" section of the server creation wizard, select the network you already created instead of creating a new one. That way, both servers will be connected to the same network.

  • Assign a name and tag to the new server that help identify and distinguish it from the previously created server.

Creation of the second server, with the existing network selected
Server created with a different name and tag from the previous one

Step 7. Verify the architecture

When both servers are in ON status, verify that everything is correct:

  • In the server list, verify that each server is deployed in a different availability zone: one in MAD1 and the other in MAD2.

  • Check that both use the same network.

  • In the diagram view, verify that the two servers appear in their respective zones and are connected to that network.

If both show the same zone, go back to Step 3. Review the selected location before continuing.

Server list with two servers in ON status located in MAD1 and MAD2 respectively

In the diagram, you should see the two servers on separate branches, each in its zone, connected to the same network.

Diagram with the servers visible in their respective locations, connected to the same network

If you also need to check communication between both servers, you can run a connectivity test. On Windows servers, remember that the firewall may block ICMP traffic by default, so a ping failed ping does not necessarily mean that there is no connectivity.

Conclusion

You now have two servers deployed in independent availability zones and connected to the same network. You already have the infrastructure base on which to build the continuity strategy your client needs.

The next step depends on what you are building. If you need to configure high availability and network best practices, continue with the tutorial "How to enable HA policy and best practices".

Last updated

Was this helpful?