# On-Premise Setup

On-Premise runs [Apache Iggy](https://iggy.apache.org) on servers that you control. The LaserData control plane manages monitoring, configuration, and tasks. It uses the same management services as Managed and BYOC deployments.

The LaserData team provisions On-Premise deployments. [Contact us](mailto:hey@laserdata.com) to discuss requirements and receive the deployment configuration and Warden installation instructions.

## How It Works

Use physical servers, private cloud infrastructure, or virtual machines that you control. After LaserData provisions the deployment, each node runs Iggy and [Warden](/deployments/warden). Warden is the agent that manages the node and communicates with the control plane.

## Architecture

Warden starts management connections outbound. Management requires no inbound firewall rule, but application clients need access to the deployment's listeners. Iggy keeps running if the control plane becomes unavailable. Pending tasks run after the connection returns.

```mermaid
graph LR
  subgraph CP[LaserData Control Plane]
    Tasks[Tasks, Configs, TLS Certs]
    Telemetry[Heartbeats, Metrics, Logs]
  end

  subgraph Infra[Your Infrastructure]
    Warden[Warden Agents]
    Iggy[Iggy Servers]
  end

  Tasks ==>|PULL| Warden
  Warden -.->|PUSH| Telemetry
  Warden --- Iggy
```

| Direction | What Flows | Protocol |
| --- | --- | --- |
| Node → Control Plane | Heartbeats, metrics, task results | Outbound HTTPS |
| Node ← Control Plane | Config, tasks, certificates (pulled by Warden) | Outbound HTTPS |
| Control Plane → Node | Nothing - no inbound connections | N/A |

## Setup Flow

### 1. Contact LaserData

Ask the LaserData team to create an On-Premise deployment. Provide these details:

* The tenant, workspace, and environment.
* Standalone for one node, or Cluster for multiple nodes with replication.
* Hostnames, public and private IPs, and ports for each node.
* Whether the deployment needs custom key encryption or deletion protection.

### 2. Deployment Provisioning

LaserData creates the deployment, registers its nodes, and prepares TLS certificates and Warden credentials. The team supplies these installation materials:

* A Warden installation script or manual instructions.
* An API key and authentication token for each node's Warden agent.
* TLS certificates signed by the deployment's CA, its certificate authority.

### 3. Install Warden

On each node, use the installation details and credentials from LaserData:

```bash
curl -fsSL https://artifacts.laserdata.com/scripts/install.sh | sudo bash -s -- \
  --api <CONTROL_PLANE_URL> \
  --secret <NODE_SECRET>
```

The script installs dependencies, downloads binaries, and checks their signatures. It then configures services and starts Warden.

For manual installation, follow the supplied instructions on each node:

1. Install the system dependencies.
2. Create the required directories.
3. Download binaries from the LaserData CDN and make sure that their signatures are valid.
4. Configure Warden with the node secret and control plane URL.
5. Start the Warden service.

Warden then manages the Iggy lifecycle.

### 4. Verify

After Warden starts, it registers with the control plane and retrieves configuration. Open the deployment in the Console to read its status. Nodes normally report healthy within a few minutes.

## Ongoing Operations

Operational changes use the task system. Warden retrieves and runs each task on the node. Failed upgrades return to the previous version automatically.

| Operation | How It Works |
| --- | --- |
| Configuration changes | Update via Console or API - Warden pulls and applies automatically |
| Upgrades | Trigger via Console or API - Warden downloads, verifies, and swaps binaries atomically |
| Certificate rotation | Automatic - Warden pulls new certificates before expiry |
| Monitoring | Warden pushes [heartbeats, metrics, and logs](/observability) to the control plane |

## Adding or Removing Nodes

[Contact the LaserData team](mailto:hey@laserdata.com) to change the nodes in a deployment. The team updates the deployment configuration and supplies credentials and TLS certificates for new nodes. A deployment supports up to 100 nodes.

## System Requirements

Each node needs these:

* Ubuntu 22.04 or later.
* Outbound HTTPS on port 443 to the LaserData control plane.
* Root or sudo access for installation.

- [Deployment Models](/deployments)
- [Warden Agent](/deployments/warden)
- [Security Architecture](/security)

## Outgoing data access

A node can open an outgoing HTTPS channel for Console data access. The deployment data-access toggle opens it and is on for new deployments. The node must already reach its Supervisor over HTTPS, and it trusts the Supervisor certificate through its system trust store. To keep the channel closed on a node regardless of the toggle, set the local switch described in [Warden outgoing data access](/deployments/warden#outgoing-data-access).

This path needs no inbound firewall rule. Each request still carries a signed deployment session, and the Supervisor checks the current Console session and permissions. Turning data access off refuses new channel work. A connection failure never replays an uncertain write. Customer payloads pass through LaserData, including encrypted temporary relay buffers between Supervisor instances.

Source: https://docs.laserdata.com/deployments/on-premise
