Skip to main content

High Availability Runbook (Summary)

warning

Not proven on real machines yet. Multi-node installs, multi-node backups, rolling upgrades and monitoring are in the installer, and its unit tests check the commands it runs, but the failure behaviour below is the design target, not a measurement: the tests that will prove it have not been run on real machines. Point-in-time restore of the database is planned and does not exist yet.

This page summarizes the operator runbook that Automation Anywhere's own engineers work from, which labels every command and flag as implemented or planned. Ask Support for the detail behind any item here.

Topology​

LayoutServersWorkersSurvives
Single machine1noneNothing: recovery is a restore from backup
High availability, 3 servers30 to NThe loss of 1 server
High availability, 5 servers50 to NThe Kubernetes control plane: the loss of 2 servers. PostgreSQL and Redis: still the loss of 1 machine that holds a copy

A server runs the Kubernetes control plane (with its replicated database, etcd) and also application pods. A worker runs application pods only, so workers add capacity but not resilience. Use an odd number of servers. All machines sit in one site, with under 5 ms of latency between them. Stretched clusters are not supported.

Five servers buy the second failure for the control plane only. PostgreSQL and Redis run 3 copies each however many servers there are: see Known limits.

What changes with high availability:

PartHigh availability
PostgreSQL3 copies managed by CloudNativePG, one synchronous standby, so a committed write survives the loss of a node. The application, the workers and the scheduler connect through a connection pooler (PgBouncer, two copies); the API and the login service connect to the primary directly
Redis3 copies with 3 Sentinels and a proxy that always points at the current master
Application2 to 3 copies of each service, spread over the machines, with disruption budgets
Kubernetes APIOne address (kube-vip or your load balancer) that reaches a working server
FilesThe bundled MinIO is one copy. Use your own S3 where files must survive the loss of a machine

Hardware and network​

  • Disk: local SSD or NVMe on every server, with a synchronous-write latency under 10 ms (99th percentile). etcd on a slow disk loses its leader. preflight measures this.
  • CPU and RAM: not measured yet. The numbers will be published after load tests. One application pod, the API, requests 9000Mi of memory, so size every machine as if one other machine were gone.
  • Ports between machines: TCP 6443 (API), 2379 to 2380 (etcd, between servers), 10250 (kubelet), 5001 (image sharing) and UDP 8472 (pod network). The ingress takes 443, or the NodePort 30443 if your load balancer targets that.
  • Addresses: the Kubernetes API address must be an unused IPv4 address in the servers' subnet, on one layer-2 segment, for kube-vip. If your network blocks that, use your own load balancer instead. Users reach EKB through your load balancer or DNS across the machines: kube-vip covers the API only.

Installing a cluster​

# the first server: starts the cluster, writes the join files, waits for three servers
sudo ./install.sh --role server --init --vip 10.0.0.50 --ha \
--domain odin.corp.example \
--tls-cert /etc/ssl/odin.crt --tls-key /etc/ssl/odin.key \
--s3-endpoint https://s3.corp.example --s3-creds /root/odin-s3.env \
--backup-dest s3://odin-backups/site-a --backup-s3-creds /root/backup-s3.env

# each further server (3 or 5 in all), one at a time, with the join file
sudo ./install.sh --role server --join 10.0.0.50 --token-file /root/join-server.env

# workers, any number
sudo ./install.sh --role worker --join 10.0.0.50 --token-file /root/join-worker.env

The example keeps files on your own S3, and the s3:// backup destination is then on that same S3; without --s3-endpoint it would be on AWS S3. Install the same release on every machine. Only the first server generates secrets. A join file is a secret: its token also decrypts the cluster's stored credentials. A joining machine takes every setting from the cluster; to change one, or to renew the certificate (give --tls-cert and --tls-key again), run sudo ./install.sh with the flag on any server. See Install.

Day-2 operations​

TaskSingle machineCluster
Statussudo ./install.sh statusThe same, on a server: nodes, etcd members, database primary and pooler, Redis master, configuration drift and backup age
Add capacityn/aJoin a worker with the worker join file
Remove or replace a noden/asudo ./install.sh remove-node <name> on another server. In a cluster of three it needs --force (fewer than three servers would be left), and --delete-data when the node holds the only copy of some data (for example the bundled MinIO); then join a replacement. A server that holds the API address hands it to another server first, and the command stops, changing nothing else, if that does not happen within 5 minutes
BackupsScheduled pg_dump, files and k3s datastore, off the machineThe same, one server per window, with an etcd snapshot, plus k3s's own snapshots every 6 hours to your S3. A directory destination has to be the same storage on every server; servers share one time zone (Backup and restore)
Restorerestore.shrestore.sh into the clustered database (--pg-target), and restore.sh --etcd-snapshot for etcd
UpgradeIn place, with a short outageupgrade --ha from one server: a rolling upgrade, servers one at a time, after a backup
MonitoringExit status of status--monitoring: local SigNoz, SigNoz Cloud or off

What to expect when something fails​

All entries are design targets for the high availability layout.

FailureWhat to expect
One server powered offThe application keeps serving from the others and etcd keeps its majority. The database promotes its standby (target under 60 seconds, no committed data lost) and Redis promotes a replica. Pods tied to that machine's disk do not move until it returns. The task scheduler is a single pod: if it was on that machine, scheduled tasks due in the next five minutes or so are missed, not run late. Bring the machine back; it rejoins by itself
Two of three servers downThe cluster loses its majority: the Kubernetes API stops answering, and the kube-vip address goes with it, so reach a surviving server through its own address. Running pods keep running, but the database needs its standby to commit, so expect writes to stall. Bring the servers back. Only if two are lost for good, restore from an etcd snapshot with restore.sh --etcd-snapshot, after stopping k3s on every other server
Disk fullThe kubelet evicts pods when under 10% is free. Free space first, then find what grew. Keep backups on another disk
Clock skewLeader elections flap and certificates and tokens are rejected. Fix the time source on every machine
Certificate expired or replacedBrowsers refuse the site, and with the bundled MinIO the application cannot reach its own storage either. Run install.sh with the new --tls-cert and --tls-key on any server (for a private CA the file ends with the CA's root); it rebuilds the trust bundle and restarts the application when the bundle changed (a renewal under the same CA leaves it as it was, so nothing restarts). See Install
Backup destination unreachableBackups fail and status reports them stale after 26 hours

Known limits​

  • The bundled MinIO is one copy in a cluster, and the image has known vulnerabilities that upstream will not fix. Use your own S3 for resilient file storage.
  • Five servers tolerate two failures for the Kubernetes control plane, and one for the data. PostgreSQL and Redis run 3 copies each on any size of cluster. If two machines that each hold a Redis copy are lost together, Redis stops accepting writes until one returns. If the PostgreSQL primary and the standby that confirmed its last commits are lost together, the most recent commits can be lost.
  • Until point-in-time restore is enabled (planned), the database restores to the last scheduled dump: daily by default, hourly if chosen.
  • Once point-in-time restore is on (planned), the database ships its log to your S3. While that S3 is unreachable the unshipped log piles up on the database machine's own disk. Once the disk runs short the database stops until space is freed, so a long S3 outage becomes a database outage. Monitor archiving and fix the target quickly.
  • There is no in-place conversion from a single machine to a cluster. Install a cluster and restore a backup into it.
  • Sizing numbers and failover times are not measured yet.

See the overview for the current status of each capability, and troubleshooting for single-machine problems.