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.
adopted.
Before you start
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.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.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
Open Import existing
On the Clusters page, click Import existing (next to Add Cluster). The dialog is titled Import existing installation.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.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.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).Discover
Jarwis probes each node (version, role, topology) and builds a plan. Fix red rows before continuing.Import
Confirm the plan. Jarwis writes an adopt marker, createsjarwis_*accounts where applicable, sets up monitoring, records the current configuration as the drift baseline, and marks the cluster running.
What Jarwis adds (and what it does not)
| Engine | Jarwis adds | Left alone |
|---|---|---|
| MySQL / MariaDB / Galera / Percona | jarwis_admin, jarwis_monitor, jarwis_backup; monitoring | Packages, datadir, your my.cnf |
| PostgreSQL / Patroni | jarwis_admin / jarwis_monitor roles; marked pg_hba.conf block; monitoring | Patroni config, data directory |
| MongoDB | jarwis_admin / monitor / backup users; monitoring | Replica-set membership, data files |
| Redis / Valkey | Monitoring using your existing secret | No ACL rewrite; RDB/AOF untouched |
| RabbitMQ | jarwis_admin / jarwis_monitor; enables rabbitmq_prometheus only if it was off | Queues, users you already created |
| Kafka | Monitoring (SASL monitor secret if listeners require it) | Brokers, topics, ACLs |
| ClickHouse | users.d/jarwis-adopt.xml; monitoring | Tables, ZooKeeper/Keeper, disks |
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.conffrom 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.