User Guide · Build a cluster · Import existing

Import existing

Already running MySQL, PostgreSQL, MongoDB, Redis/Valkey, RabbitMQ, Kafka, or ClickHouse on servers Jarwis knows about? Use Import existing to bring that installation under management without reinstalling packages or touching data.

Import ≠ create Create Cluster provisions a new engine from scratch. Import discovers what is already there, adds Jarwis service accounts and monitoring, and registers the cluster as adopted.
/clusters → Import existing
Import existing dialog
Clusters → Import existing. Discover first, review the plan, then import.

Before you start

  1. Enroll the hosts

    Every server that runs the engine must appear on Nodes with an online agent. Import lists only online nodes that are not yet in a cluster. When Jarwis detects an unmanaged database on an enrolled node, the Nodes page shows an Existing databases found on your nodes banner that leads here.
  2. Know how to authenticate

    Most engines need a short-lived admin credential so Jarwis can create its own accounts. PostgreSQL and RabbitMQ often need none (peer / Erlang cookie). Redis and Kafka keep the operator secret when Jarwis cannot create a separate account.
  3. Import the whole topology

    Select every member Jarwis should manage. Peers the engine reports but you omit show up as warnings (partial adopt).

How to import

  1. Open Import existing

    On the Clusters page, click Import existing (next to Add Cluster). The dialog is titled Import existing installation.
  2. Pick engine and nodes

    Leave engine on auto-detect, or pin MySQL/MariaDB/Galera, PostgreSQL, MongoDB, Redis, RabbitMQ, Kafka, or ClickHouse. Tick the enrolled nodes that run it.
  3. Runs on

    Leave The host (package / systemd install) for bare metal and VMs. If the engine runs in Docker or Podman, choose the container runtime instead and pick the container on each node. Its port must be published to the host, or the container must use host networking; multi-node clusters and Kafka need host networking, and Galera is not supported in containers.
  4. Credentials

    Enter an Admin user and Admin password when the hint under the fields asks for one (both are optional for some engines). They are used only for this import and are not stored (Redis/Kafka are the exception: the secret becomes the managed credential).
  5. Discover

    Jarwis probes each node (version, role, topology) and builds a plan. Fix red rows before continuing.
  6. Import

    Confirm the plan. Jarwis writes an adopt marker, creates jarwis_* accounts where applicable, sets up monitoring, records the current configuration as the drift baseline, and marks the cluster running.
One operation at a time Import runs as a cluster task with a live log, same as install. Wait for it to finish before starting backups or Day-2 changes.

What Jarwis adds (and what it does not)

EngineJarwis addsLeft alone
MySQL / MariaDB / Galera / Perconajarwis_admin, jarwis_monitor, jarwis_backup; monitoringPackages, datadir, your my.cnf
PostgreSQL / Patronijarwis_admin / jarwis_monitor roles; marked pg_hba.conf block; monitoringPatroni config, data directory
MongoDBjarwis_admin / monitor / backup users; monitoringReplica-set membership, data files
Redis / ValkeyMonitoring using your existing secretNo ACL rewrite; RDB/AOF untouched
RabbitMQjarwis_admin / jarwis_monitor; enables rabbitmq_prometheus only if it was offQueues, users you already created
KafkaMonitoring (SASL monitor secret if listeners require it)Brokers, topics, ACLs
ClickHouseusers.d/jarwis-adopt.xml; monitoringTables, ZooKeeper/Keeper, disks
Auto-failover stays off Adopted clusters start with automatic failover disabled. You can enable it later only where it is safe: Jarwis stops (fences) the failed primary through its agent before promoting a replica, which is possible for MySQL/MariaDB async replication with an online agent on every node. Other topologies keep their own native failover.

Detach (not uninstall)

On an imported cluster the usual Uninstall action becomes Detach. Detach removes Jarwis accounts, monitoring configuration, and the adopt marker (you can tick Keep the jarwis_* accounts on the engine if you plan to import again). It never purges packages, configuration, or data directories. Re-installing a greenfield cluster onto a node that still has a marker is blocked until detach finishes.

◆ Safe by default

Adopted clusters refuse the destructive install/uninstall paths that would wipe a customer database.

◆ Same Day-2 surface

After import you get monitoring, alerts, backups, and SQL/console tools through the same cluster tabs as a Jarwis-built cluster.

◆ Partial topologies

If discovery sees peers you did not select, Jarwis warns and continues. Add the missing nodes later or re-import with the full set.

Limits to know

  • Multi-node PostgreSQL without Patroni: a single primary is adopted standalone; streaming-replication members can be added to an adopted cluster afterwards (check the discovery plan for what your version supports).
  • Patroni may rewrite pg_hba.conf from its own template — keep the Jarwis block in Patroni’s HBA list if you need it to survive restarts.
  • ClickHouse native backups need a configured backup disk.
  • TLS client settings for Kafka, MongoDB, and Redis are not auto-wired yet — configure them if your listeners require TLS.
Related Register hosts on Nodes, then manage the result from Clusters. Engine matrix: Supported engines.