# Infrastructure

Source: https://docs.qvoice.net/whitelabel/infrastructure/

The servers a white label partner provides for its QVOICE Platform cloud. Back to
[Get Started](https://docs.qvoice.net/whitelabel/).

## Servers and networking infrastructure

QVOICE Platform is built to be redundant and scalable. It runs on a single Linux server for a
demo, but a production cluster should have at least **3 servers**. A geo-redundant installation has
at least two datacenters with a three-server cluster in each.

| Layout | Servers | Use |
| --- | --- | --- |
| Single server | 1 | Demo, or production with no redundancy |
| Single datacenter cluster | 3 | Production (recommended minimum) |
| Geo-redundant | 3 in each of 2 datacenters | Production that survives the loss of a datacenter |

## Each server

- **Server or VM**: 32 GB memory, 16 cores, 500 GB SSD.
- **Disk speed**: at least 10K IOPS per system ([test it](https://docs.qvoice.net/whitelabel/infrastructure/#server-ssd-disk-speed-test)).
- **OS**: Debian 12 (Bookworm) 64-bit, latest release, from the
  [Debian netinst image](https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/).
- **Partitioning**: everything in `/`. No separate mounts are needed.
- **Credentials**: root access for the QVOICE Platform team.

## Network

**Public IPs (recommended)**

- A public IP address on each server, answering ping from the internet.
- The platform must not sit behind NAT. A router can put the servers in a DMZ and route public
  addresses to them.
- Typical for enterprise VM infrastructure or bare-metal servers.

**Private IPs with elastic public IPs (supported)**

- A private IP on each server, with an elastic public IP mapped to each one.
- Typical for AWS, or a VMware installation with only private address space.

**Between geo sites**

- At least 50 Mbps and latency under 20 ms between geo sites.
- Dual redundant links.

## Single datacenter production cluster

Three servers or VMs, each as above.

## Geo-redundant: two datacenters, two clusters

- Three servers or VMs in datacenter cluster 1, each as above.
- Three servers or VMs in datacenter cluster 2, each as above.
- At least 50 Mbps and latency under 50 ms between the sites, with dual redundant links.

## Server SSD disk speed test

Install `fio` and run the benchmark on each server:

```
apt-get install fio
wget -qO- yabs.sh | bash -s -- -gi
```

**Warning:**

Confirm that the **4K IOPS** result is over **10K**.

![SSD disk speed test](https://docs.qvoice.net/brand-assets/wikijs/ssd-disk-speed-test.png)
