Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,29 @@ The encryption password and salt in `docker.env` decrypt every datasource creden
Run the standard single-container install on a primary host. Replicate its volume to a standby host at the **block level**, for example with ZFS send/receive, DRBD, storage-array replication, or hypervisor HA such as vSphere HA. If the primary fails, start the same container on the standby and move the DNS name or virtual IP to it.

```mermaid
flowchart LR
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart TB
U["Users"] --> VIP["DNS name / virtual IP"]
VIP --> P
VIP -. "after failover" .-> S
subgraph P["Primary host (active)"]
VIP --> PA
VIP -. "after failover" .-> SA
subgraph P[" "]
PL["Primary host (active)"]:::label
PA["Appsmith container<br/>embedded MongoDB + Redis"] --> PV[("Local block volume<br/>/appsmith-stacks")]
end
subgraph S["Standby host (stopped)"]
subgraph S[" "]
SL["Standby host (stopped)"]:::label
SA["Appsmith container<br/>not running"] --> SV[("Replica volume")]
end
PV == "block-level replication" ==> SV
classDef label fill:none,stroke:none
```

Why this works: only one container is ever running, so the embedded databases are safe and nothing needs to be externalized.
Expand Down Expand Up @@ -99,6 +111,15 @@ Starting with the biggest:
- If you use **vSphere HA** or similar hypervisor HA, the hypervisor restarts the Appsmith VM on another physical host automatically, and the container starts through its restart policy. You only need to verify (step 6 below).

```mermaid
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart TD
A["Primary fails<br/>health check alerts"] --> B{"Really down?<br/>not just a network blip"}
B -- "no" --> Z["Investigate,<br/>no failover"]
Expand Down Expand Up @@ -146,6 +167,15 @@ flowchart TD
Only one host serves traffic, so you scale **up**: you give that host more CPU, memory or faster storage. Everything runs in one container (the Appsmith server, the embedded MongoDB and Redis, and before 2.8 Keycloak), so they all share the host's resources.

```mermaid
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart LR
M["Watch the primary<br/>CPU · RAM · disk I/O"] --> Q{"What is<br/>the limit?"}
Q -- "CPU" --> C["Add vCPUs"]
Expand Down Expand Up @@ -207,11 +237,22 @@ Appsmith supplies the Appsmith image, the license key and guidance on connecting
### Reference architecture

```mermaid
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart TB
U["Users / browsers"] --> VIP
subgraph EDGE["Customer network · NOT Appsmith"]
subgraph EDGE[" "]
EL["Customer network · NOT Appsmith"]:::label
VIP["Virtual IP or DNS<br/>keepalived / floating IP"]
subgraph LB["Load balancers · TLS terminates here"]
subgraph LB[" "]
LL["Load balancers · TLS terminates here"]:::label
LB1["LB 1 · active<br/>NGINX, HAProxy or other*"]
LB2["LB 2 · standby<br/>NGINX, HAProxy or other*"]
end
Expand Down Expand Up @@ -242,6 +283,7 @@ flowchart TB
APP --> NFS
APP -.-> PG
style EDGE stroke-dasharray: 6 4
classDef label fill:none,stroke:none
```

_\* Any load balancer your team already runs and knows how to operate, such as a hardware appliance or your cloud provider's load balancer, works. It just needs to meet the load balancer requirements below._
Expand Down Expand Up @@ -482,6 +524,15 @@ Open-source NGINX only checks hosts passively, through `max_fails`. Use HAProxy,
The Docker installation procedure is the same in an air-gapped environment. Only two things change: you use the **`appsmith/appsmith-airgap`** image instead of `appsmith/appsmith-ee`, and you activate with an **offline license key** that's validated without contacting Appsmith. Everything else has to be downloaded on a connected machine, checked, and carried in.

```mermaid
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart LR
subgraph ONLINE["Connected staging machine (same OS + CPU architecture as targets)"]
P1["docker pull<br/>appsmith-airgap:vX.Y.Z"] --> S1["docker save | gzip"]
Expand Down Expand Up @@ -562,7 +613,16 @@ Repeat steps 1 and 5 for each new version. Bring in the new image (and the match
In Pattern B, each Appsmith host is interchangeable. Adding one needs no change to the existing hosts and no downtime. The new host mounts the same shared `/appsmith-stacks`, picks up the same `docker.env` (settings and encryption keys) from it, and connects to the same MongoDB and Redis.

```mermaid
flowchart LR
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart TB
A["Provision new VM<br/>same OS + Docker version"] --> B["Mount shared NFS<br/>same path + options"]
B --> C["Copy docker-compose.yml<br/>same pinned image tag"]
C --> D["docker compose up -d"]
Expand Down Expand Up @@ -607,7 +667,16 @@ flowchart LR
All hosts must run the same version, and database migrations should run from a single host.

```mermaid
flowchart LR
---
config:
markdownAutoWrap: false
flowchart:
wrappingWidth: 600
subGraphTitleMargin:
top: 10
bottom: 30
---
flowchart TB
A["Back up<br/>appsmithctl backup<br/>+ MongoDB snapshot"] --> B["Test the new version<br/>in a lower environment"]
B --> C["Maintenance window:<br/>stop Appsmith on ALL hosts"]
C --> D["Update the pinned tag<br/>on host 1 and start it"]
Expand Down
Loading