Routine maintenance becomes risky when nobody knows what a server runs, who depends on it or how to recover it. A useful maintenance plan makes those facts visible before an update starts.
Our approach covers the operating system, containers, databases and the virtualization platform as separate layers. Updating a hypervisor does not update the guest operating systems, and restarting a VM does not prove its application works.
Keep security updates current
Security patches close known weaknesses in operating systems, databases, application dependencies and container images. Use supported releases and apply current security fixes; a major version upgrade is a separate compatibility decision. Prioritise vulnerabilities being actively exploited and systems exposed to the internet. The CISA Known Exploited Vulnerabilities catalogue helps identify issues that need attention.
Test changes, prepare recovery and verify the application afterwards. Urgent security fixes need an expedited process when waiting for the next routine maintenance window would leave an unacceptable risk.
Automate checks and follow through
Run dependency and container-image scans in the delivery pipeline and repeat them on a schedule: new vulnerabilities can be disclosed even when your code has not changed. GitLab container scanning can identify known vulnerabilities in image packages; dependency scanning covers application libraries.
A report needs an owner. Review exposure and impact, assign fixes, rebuild affected images and scan again after remediation. Agree scan coverage, frequency and escalation as part of the service scope. Automated checks help find known issues; they do not prove that a system is secure.
Keep internal services off the public internet
Databases, caches and administration tools usually have no reason to accept public connections. Put them on private VPC networks, allow only required application traffic through firewalls and give administrators controlled VPN access. A VPC provides private connectivity; a VPN provides an encrypted path into that network.
Adding a private network does not automatically close a server’s public ports. Bind internal services to private interfaces, restrict inbound rules and verify that they cannot be reached publicly. Limit VPN users to the systems they need and remove access when it is no longer required. See DigitalOcean’s VPC documentation for the private-network model used by that platform.
Know what will change
Keep an inventory of the systems in scope, their versions, dependencies and owners. Review the change against the application’s requirements. Identify reboots, compatibility constraints, storage needs and any change to the way the service starts.
Agree a maintenance window and a contact who can confirm the business impact. Define which checks must pass before work starts, and the point at which you stop and recover instead of continuing.
Prepare access and recovery
Check the latest usable backup and the recovery procedure. Where appropriate, create a temporary snapshot for the change and define its removal date. Confirm console access before changing networking or remote-access configuration.
For a database upgrade, verify the supported upgrade path and application compatibility separately. A snapshot can help with rollback, but restoring it can discard writes made after it was taken. The recovery decision needs to account for those writes.
Check capacity before moving workloads
On a suitable XCP-ng pool, Rolling Pool Updates can evacuate VMs, update hosts and reboot them in sequence. The process depends on the pool configuration and the ability to move the workloads. Follow the prerequisites in the XCP-ng update documentation.
Plan for enough capacity on the remaining hosts. Check storage access, CPU compatibility and migration restrictions before treating evacuation as an available option. Live migration and high-availability restart serve different purposes; neither replaces application-level validation.
Maintenance record: systems affected, versions before and after, expected impact, recovery point, responsible engineer, validation checks and final result. Keep it with the system documentation.
Verify the service after the change
Check more than whether the machine is reachable. Confirm the application starts, the database accepts connections, background workers run and a representative request succeeds. Review errors, disk space and monitoring after the system returns to service.
- Confirm that scheduled jobs and backup jobs still run.
- Check certificates, network rules and required external connections.
- Re-enable any alerts deliberately paused for the maintenance window.
- Record follow-up work and remove temporary recovery points when safe.
Make maintenance an ongoing responsibility
Agree which systems we maintain, the update cadence, the approval process and the support window. Emergency fixes and major upgrades may need a different plan from routine updates. The service scope should make that distinction clear before an urgent change is needed.