CoNeuroid AB offers each release on two channels:
- the candidate channel, which the test installation follows;
- the stable channel, which production follows. A release reaches it after at least seven days as the candidate, unless it is a security fix.
The license decides the channel: a test installation's license says so.
How an upgrade happens
Every 15 minutes the updater on the server reads the installation's channel from the release address and checks its signature. When the channel names a newer release and an upgrade may start (below), it:
- fetches the release and checks its signature;
- stages it beside the running release, with its images pulled;
- makes an encrypted backup;
- runs the database migrations while the running release still serves;
- starts the new release, and waits until every service is healthy.
If step 4 or 5 fails, the previous release comes back by itself: rolled back. Every upgrade, with its result and why, is listed on Reliability → Upgrades.
When an upgrade may start
Open Reliability → Upgrades in the admin console. It has two parts.
Releases lists the release that runs, the newer one the channel offers, and the earlier ones. The newer release's row says in a sentence what will happen next, and when. Its button:
- Upgrade now: installs that release at the next check, within 15 minutes, outside the window too. It names the release: a newer one offered later is not taken by the same click. Cancel takes it back.
- Try again: after three failed tries of the same release, the updater stops trying it, and the row says so. Read why in the list of upgrades, fix the cause, then try again.
Automatic upgrades sets when upgrades start by themselves:
- The window: the days, the start time, how many hours (1 to 24) and the time zone. Until you set one, it is Sundays from 02:00 to 06:00 UTC.
- Pause until: no automatic upgrade until that date, at most 30 days after the newer release entered the channel. A security fix still installs during a pause, in the window. Resume ends the pause.
For a release you want at once, use Upgrade now; nothing waits for the window then.
The test installation first
The test installation takes each release from the candidate channel, a week before production. Use that week: run your own checks on it. When a release breaks something for you, pause production's automatic upgrades and tell CoNeuroid AB (see Diagnostics and support).
Disk
Each upgrade keeps the previous release's images, so a roll back needs no
download. The images of releases older than that are removed. The backup
before each upgrade goes to /var/backups/coroid; remove old ones there, or
move them off the server, as your backup policy says.
Renewing the license
A renewed license is a new file from CoNeuroid AB. Open Settings → License in the admin console and apply it. The installation keeps the old one until you do.
Before you go on
- The window suits the customer, and the test installation's window comes before production's.
- You know where to read each upgrade's result: Reliability → Upgrades.
Next: Backup and restore.