> Source: https://docs.cyberelements.io/bastion/4.7/fi/Installation/MultiNode/Introduction/

# Introduction to installing a multi-node platform

The multi-node architecture, new in CyberElements Bastion 4.7, groups several Mediation Controller servers into a single platform. Unlike the [Cluster architecture](https://docs.cyberelements.io/bastion/4.7/fi/Installation/Cluster/Introduction/), which pairs exactly two servers (a `MASTER` and a `SLAVE`) sharing virtual IP addresses, each node of a multi-node platform is installed as a **Standalone** Mediation Controller, then joins the others:

- all nodes share the same system configuration database (`default`) and the same organisation databases, hosted on an **external** database server;
- the nodes exchange the files that the product keeps outside the databases (shared secret, organisation connection settings, internal vault keys) by connecting to one another over SSH;
- each node keeps its own addresses (`IP_MC_WEB` and `IP_MC_SSL`), its own licence and its own certificates.

> **Information**
>
> Once a server has joined a multi-node platform, the [Switch mode](https://docs.cyberelements.io/bastion/4.7/fi/Usage/Administration/SystemConsole/SwitchMode/) screen of its system console is no longer displayed: the role of the server is no longer chosen from the console.

The multi-node architecture of CyberElements Bastion consists of three roles:

- The `Mediation Controller` server that assigns and controls access permissions to managed resources.
- The `Edge Gateway` server that acts as a “passive” network gateway to managed resources. This server generates session recordings before storage.
- The `HTML5 Gateway` server that is a gateway used for an access without agent on the user side by converting RDP, SSH, and VNC protocols to web flows.

> **Note**
>
> This last server can be deployed on the same machine as the Edge Gateway server.

Multi-node architecture typically consists of:

- Several `Mediation Controller` servers (the nodes)
- A database server, or a PostgreSQL cluster (recommended), reachable from all the nodes
- One or several `Edge Gateway` servers combining the `HTML5 Gateway` role, with one instance per node

Below is the architecture diagram for CyberElements Bastion with external access (WAN mode):

Users reach the portals (user portal and consoles) through a load balancer that is not part of the product. The applications that go through the CyberElements Bastion client connect directly to the SSL Router of each node (`IP_MC_SSL`, TCP 443), without a load balancer: each node meets the [network prerequisites of a Standalone Mediation Controller](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MediationController/Prerequisites/#network-standalone).

- **[Prerequisites](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MediationController/Prerequisites/#network-multi-node)**

  ---

  Definition of the prerequisites for the multi-node CyberElements Bastion architecture.
- **[Mediation Controllers](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MultiNode/InstallMediationController/)**

  ---

  Installation of the Mediation Controller servers of a multi-node platform on Debian 13 servers.
- **[Edge Gateway & HTML5 Gateway](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MultiNode/InstallEdgeGateway/)**

  ---

  Installation of the Edge Gateway server, which also acts as an HTML5 Gateway, for a multi-node platform.

> **Recommendation**
>
> The security hardening guide details the local firewall rules, the hardening of the SSH service and of an external database: see [Local firewall](https://docs.cyberelements.io/bastion/4.7/fi/Security/LocalFirewall/), [SSH](https://docs.cyberelements.io/bastion/4.7/fi/Security/Ssh/) and [R79](https://docs.cyberelements.io/bastion/4.7/fi/Security/SessionRecordings/#r79).
