The necessary software updates for Aiven services are handled by us and do not require actions from the users. The software updates are applied during the maintenance windows defined by users. Maintenance windows for example for PostgreSQL are most often scheduled after minor PostgreSQL releases which happen quarterly.
In case security vulnerabilities are found, maintenance will necessarily need to happen more often than that. In case of non-urgent updates users can also define the maintenance window time from our web console to happen at any point within the next 7 days. This allows for the update to happen during a low traffic time period.
When are maintenance upgrade installed?
Non-critical upgrades are made available in such way that there is a period of time before we actually perform the upgrade automatically. During this availability period you can manually click the "Apply upgrades" button to start the rolling upgrade at the time of your choosing.
There is also a deadline after which we trigger the upgrade automatically at the next available "maintenance window" for your service. The maintenance window is configurable and you may choose a weekday and the time when the upgrades will be started. If there are no upgrades that are past the deadline during a maintenance window, no changes are performed.
The screenshot below shows an example maintenance upgrade.
A quick summary:
- An upgrade is made available
- During a period of (typically) one week, the upgrade can be manually started at any time you prefer by clicking the "Apply updates" button in the web console
- Upgrade deadline is reached after one week
- The upgrade is automatically installed at the next possible maintenance window for your service
How are critical upgrades and security fixes installed?
Critical upgrades and security fixes can be installed outside normal maintenance windows when necessary.
Is the service interrupted during a maintenance upgrade?
Aiven upgrades are performed as rolling upgrades where completely new server instances are built alongside the old ones. Once the new instances are up and running and in sync with the old servers, a controlled automatic failover is performed to switch the service to use the new upgraded servers. The old servers are retired automatically after the new servers have taken over providing the service.
The controlled failover is a very quick and safe operation and it takes less than a minute to get clients connected again. Typically we see a 5-10 second period during which the clients are unable to re-establish the connection.
What should I set as my maintenance window?
Some of our customers prefer to perform the upgrades during a low activity times, such as night time or during weekends to minimize the impact of the short service interruption.
Others prefer to do it during office hours so that their operational staff can monitor their systems during the upgrades.
How do I receive notifications about upcoming maintenance updates?
You can configure maintenance email notifications about upcoming required maintenance updates which will be sent to tech email addresses approximately two weeks before the maintenance start time.
To configure maintenance notifications, navigate to Aiven console, and under Billing -> Profile -> Tech Email Addresses specify email addresses for users to be notified of upcoming maintenance updates.
Is there something that needs to be accounted for on the client side?
- Ensure your client software is able to automatically establish a connection
- Do not cache IP addresses of the Aiven service, they may change during upgrades
- The DNS address of the service stays the same during and after the upgrade