OPNexusdocs

Operating OPNexus

In this chapter#

  • Data and volumes
  • Noticing an OPNexus outage (heartbeat) — If OPNexus fails, every alarm it would send falls silent too. An external monitor helps against this: enter under Settings › Operating settings › External monitoring and
  • Several backends on one database — The background services (reverting unconfirmed changes, notifications, log fetching, measurements, scheduled maintenance and rollouts, security posture, audit export, sch
  • Backup and restore — With --with-env and --with-ca the full backup also includes the .env and the proxy's internal CA (caddy_data); ./opnexus restore FILE --with-env --with-ca restores them.
  • Migration and emergency (cold standby) — If the OPNexus server fails, the firewalls keep running unchanged; only management, alarms and scheduled maintenance stand still. For this case you keep a cold standby: a
  • High availability (warm standby) — For a switchover in minutes instead of hours you run two nodes: the primary (database writable, full stack, holds the shared address, the VIP) and the standby (database a
  • Updating OPNexus — An update replaces only the code; the data stays in the volume, the configuration in the .env.
  • Notice about new versions — Optionally OPNexus shows administrators a notice at the top when a newer version has been published. It is switched on under Settings › Update OPNexus (switch "Enable ver
  • One-click updates (optional) — Instead of opnexus update, an admin can under Settings › Update OPNexus view version and release notes, update, follow progress and, if needed, reset to the previous vers
  • Database names — New installations create database and user as opnexus (the names are set by POSTGRES_DB and POSTGRES_USER, only on the very first start of an empty volume). An older inst
  • Second instance on the same machine — Put the Compose file in its own directory, with its own .env. An own project name is important (COMPOSE_PROJECT_NAME=opnexus2): the Compose file fixes the project name to
  • Disk space — A full disk makes Postgres crash. Keep an eye on the space, set retention and limit for log collection appropriately (see Logs) and occasionally clean up unused Docker im
  • Versioning — OPNexus uses Semantic Versioning and gives every minor version a bird-of-prey codename. A patch release keeps the name. The running version is in the footer, in the setti