Self-Hosted to Cloud: When Switching Makes Sense for n8n
Switching from self-hosted to n8n Cloud: maintenance effort drops, but so does control. What does not automatically carry over with nodes and credentials.
n8n recommends PostgreSQL for queue mode and multi-main. Symptoms, thresholds, and the migration steps from SQLite to Postgres at a glance.
By default, n8n starts with SQLite, a file-based database without its own server process that requires no separate installation. This is sufficient for test instances, individual automations, and getting started. However, as soon as you run multiple concurrent workflow executions, use queue mode, or want to operate multiple main instances, n8n explicitly recommends PostgreSQL version 13 or higher in its own documentation. The right time to switch depends less on a fixed number of users than on three factors: the number of concurrent executions, the planned architecture, and how often locking errors already appear in the logs. As of: July 2026.
In the n8n community, one error pattern keeps recurring: SQLITE_BUSY: database is locked. The cause lies in the design of SQLite, which allows only one write access per file at a time. If several workflows run in parallel or you open the editor while executions are active, the write accesses to the same file collide. In the short term, WAL mode (Write-Ahead Logging) with a busy timeout of at least 5000 milliseconds helps, reducing the frequency of errors. However, the underlying single-writer limitation remains unaffected and reliably returns as load increases.
In its documentation, n8n does not specify a fixed number of executions per day as the switching point, but ties the limit to concrete architecture decisions.
The switch is done via export and import, not via an automatic conversion of the database file.
The switch is not a one-click process but a small maintenance window: during export, reconfiguration, and import, n8n is briefly down, and detailed execution histories are not automatically migrated via the standard path. For small installations with few workflows, the effort is manageable; for grown instances with many active automations, testing beforehand on a staging instance is worthwhile. Anyone who does not want to take sole responsibility for this step during live operation can also have it accompanied externally, for example as part of an n8n consulting service at a fixed price.
n8n does not give a blanket number. According to the documentation, the architecture is more decisive: as soon as queue mode or multiple main instances are planned, Postgres applies as a requirement, regardless of the exact execution volume.
For small instances with little parallelism, yes, this can noticeably reduce locking errors. However, as soon as you move toward queue mode or multi-main, this adjustment is no longer sufficient according to n8n.
The standard path via export and import reliably transfers workflows and credentials. Complete execution histories are not automatically included; anyone who needs them should check this separately before the migration.
No. You can also use PostgreSQL in single-main operation without queue mode, for example to avoid locking errors. Queue mode and multi-main are separate expansion stages that additionally require Redis.
Further details on choosing the database and on the environment variables can be found in the n8n documentation on database selection as well as in the guide to queue mode.
Founder of NordFlux. Spent four years automating processes at enterprise scale at Dräger, and now brings that depth to the mid-market — pragmatic and with full data sovereignty.
Certifications
Switching from self-hosted to n8n Cloud: maintenance effort drops, but so does control. What does not automatically carry over with nodes and credentials.
Set up n8n on the Synology NAS via Container Manager: Docker Compose project, Postgres instead of SQLite, volume mapping and reverse proxy.
How to install n8n with Docker Compose: Postgres instead of SQLite, .env, volumes and updates step by step.
Queue mode, multi-main setups or growing execution data eventually push n8n instances toward PostgreSQL. NordFlux plans and guides the migration, from a threshold analysis to a production Postgres setup without data loss. In an initial conversation we assess how urgent the switch really is for your setup.