How it works
What Raff updates
- Newer builds of the same version. Fixes to the engine and the system it runs on. The major version never changes: a PostgreSQL 18 database stays on PostgreSQL 18.
- Not a newer major version. That can change how your app behaves, so you start it yourself; see Upgrade PostgreSQL version. An upgrade also brings the latest fixes, so a planned update is no longer needed after it. The one exception is a version that no longer gets security fixes; see When a version reaches the end of its support.
- A build that restarts nothing. When a new build changes only a tool that runs beside the database, such as the backup tool, Raff moves to it without a restart and without a notice. It is listed in the history.
The maintenance window
Each database has one hour a week when Raff may update it.- Let Raff pick (the default): the quietest hour of the database’s week, from its own traffic. Until it has a week of traffic, Sunday 07:00 to 08:00 UTC.
- Choose a day and hour: any hour of the week. The dashboard shows it in your time zone; the API uses UTC.
- Free plan: Raff picks the window and it cannot be changed.
Notice
The project’s members get an email and a notification in the dashboard when an update is planned, a reminder a day before, and one when it is done or did not go through. The database’s Overview shows a line when an update is planned within 7 days.
Postpone and Update now
- Postpone moves the update to the next window, a week later (a day later for a security fix), or to a time you pick. An update can be postponed 3 times, and never past its last date.
- Update now starts the planned update within a minute instead of waiting for the window. The database must be running.
During an update
- A backup is taken first. Nothing changes until it is done. Kafka has no backups, so its updates start at step 2.
- The database restarts on the new build. Open connections are closed and your applications reconnect. The status shows Updating; in the API,
statusisresizingandstatus_messagestarts withUpdating. - Raff checks the database runs the new build and takes connections. Then the status is Healthy again.
Each planned update shows its own expected time before it runs, and the measured time once it is done. A short restart during an update is not counted as down and sends no Down email.
When a version reaches the end of its support
A version that no longer gets security fixes cannot be kept safe. Raff then moves the databases on it to the next supported version, as a planned update. Today this applies to MySQL 8.0, which moves to MySQL 8.4 LTS.- The same notice and controls. The move is announced like any update and runs in your maintenance window. You can postpone it 3 times, pick a time, or use Update now. In Settings, the card shows it as Move to MySQL 8.4.
- Checked first. Raff runs MySQL’s own upgrade check on your database before the move is planned and again right before it runs. If the check finds something MySQL 8.4 cannot take, nothing is planned, nothing changes, and Raff looks into it.
- One restart. A backup first, then writes stop, the database restarts once on 8.4 and Raff checks it. Expect about 45 seconds.
- What stays the same. The address, the port, your users, their passwords and your data.
- The older login method keeps working. MySQL 8.4 switches
mysql_native_passwordoff by default. On a moved database Raff leaves it on, so accounts that use it sign in as before. To move an account to the current method:ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY 'new-password'; - If the move does not go through. The database returns to MySQL 8.0 by itself. If the 8.4 server had already started, Raff restores the backup taken at the start of the move; the message says from which minute.
- After the move. MySQL cannot go back from 8.4 to 8.0 on the same data. A restore point from before the move restores into a new database, which runs 8.0. See Backups and point-in-time restore.
If an update does not go through
If the update cannot complete, the database goes back to the build it ran before by itself, unchanged. The dashboard and the email say what happened. Raff looks into it before the update is planned again.Paused free databases
A paused free database is never woken for an update. It is updated when you resume it, with no interruption of its own and no email.History
Settings, Versions and maintenance lists every update that ran, with the date, what it brought, who started it and how long the database was offline, together with your major version upgrades.When to use it
- Set your own window when your traffic has a quiet hour Raff cannot see, such as a weekly batch job.
- Postpone an update that falls on a launch or a busy day.
- Use Update now to take an update at a time you are watching, for example right after a deploy.
Trade-offs
- Every update restarts the database once. Clients that reconnect by themselves do not notice more than a short pause; add retry logic to those that do not.
- A database with high availability is interrupted for less time, because its copies are updated one at a time.
- An update cannot be skipped: it can be postponed 3 times and never past its last date.
Related
Manage database updates
Set the window, postpone or update now.
Status and health
What each status means.