# Maintenance, Downtime and High Availability Zerops maintains the servers (also called nodes) that run your services. During maintenance, a service that is not [highly available](#high-availability) can be unavailable for a few minutes. This page explains what to expect, who is affected and how to avoid it. ## Platform maintenance {#maintenance} Maintenance is any work on the servers of a region: security updates, upgrades of the platform, and hardware repairs and replacements. Most of it needs a server to restart, or its containers to move to another server. Security updates are the most frequent reason today. The number of security fixes of the Linux kernel has grown sharply, and Zerops applies them to all servers within days. - **How long:** a container is typically unavailable for 3 to 10 minutes. - **How often:** about once a month in every region. - **When:** at any time of the day. Zerops does not announce maintenance in advance. - **Where you see it:** every maintenance is reported on the [status page](#status-page), and the GUI marks the affected services, see [Was it maintenance?](#was-it-maintenance). ## Was it maintenance? {#was-it-maintenance} While the server of a service is in maintenance, the GUI shows the **Hardware maintenance** badge on the service and its containers. Afterwards, check the [status page](#status-page) for a maintenance of your region at the time of the downtime. A maintenance of a region can take hours, and each container is affected for a few minutes of it. If the time matches, maintenance is the likely cause. ## What happens to a container {#what-happens-to-a-container} During maintenance, a container is stopped and started again, on the same server or on another one. Your application starts the same way as after any restart of the container. **What stays:** the disk of the container with all its data, the deployed version, the environment variables, the hostname and the IP addresses. **What is lost:** the content of the memory, open connections, and requests and jobs that were running when the container was stopped. ## Who is affected {#who-is-affected} | Your setup | During maintenance of its server | |---|---| | Runtime service with one container | Unavailable. | | Runtime service with a minimum of 2 containers | Stays available, the other containers serve the requests. | | Database, search engine, message broker or shared storage in [single container mode](/features/scaling#single-container-mode) | Unavailable. | | The same in [HA mode](/features/scaling#highly-available-ha-mode) | Stays available, with a [short failover](#high-availability). | | Project with the [Lightweight core](/features/infrastructure#lightweight-core) | When the server of the core is in maintenance, the whole project is unreachable from the internet. This includes services whose containers run on other servers. | | Project with the [Serious core](/features/infrastructure#serious-core) | Stays reachable. The logs and metrics of the project can have a gap of a few minutes. | | [Docker](/docker/overview#resources-and-scaling) service | The same as a runtime service: unavailable with one VM, available with 2 or more. | | [Local Storage](/local-storage/tech-details#co-location-and-scheduling) and the runtime services connected to it | Unavailable. All their containers run on the server of the volume. | | [Zerops Box](/zbox/workspace-service#service-lifecycle) workspace | Unavailable. The workspace parks its running sandboxes first. | | Object storage | Not affected. It runs on separate infrastructure. | ## High availability {#high-availability} A project is highly available when all of this is true: 1. The project has the [Serious core](/features/infrastructure#serious-core). 2. Every database, search engine, message broker and shared storage runs in [HA mode](/features/scaling#highly-available-ha-mode). The mode is chosen when the service is created and cannot be changed later. 3. Every runtime service has a [minimum of 2 containers](/features/scaling#setting-horizontal-scaling-parameters), and the application is built to run in several containers. 4. No runtime service has a [Local Storage](/local-storage/tech-details#co-location-and-scheduling) volume connected, because the volume keeps all containers of the service on one server. A highly available setup stays available during maintenance. Expect a short failover: open connections are dropped, and writes to a database can fail for a few seconds. Your application has to reconnect and retry. If a highly available setup was unavailable for longer, [contact support](#contact-support). Zerops places the containers of a service on different servers when capacity allows. Before maintenance of a server, Zerops makes sure that every service with several containers keeps containers running on other servers. The same setup keeps your project available when a server fails. **What it costs:** the Serious core is a monthly subscription, and every container of a service is billed for its own resources. See [project core plans](/billing/pricing#project-core-plans) and [services with several containers](/billing/pricing#several-containers). ## During maintenance {#during-maintenance} - **Operations wait.** A deploy, restart, stop or environment variable change that needs a container on a server in maintenance waits until the maintenance of that server ends, and then finishes. - **Automatic scaling is paused.** Zerops does not scale the containers on a server in maintenance until the maintenance of that server ends. - **A scheduled backup can be skipped.** If the time of a [backup](/features/backup) falls into the downtime of its container, the backup runs at its next scheduled time. ## Status page {#status-page} The status page is at [status.zerops.io](https://status.zerops.io). - **Status:** the current state and the uptime history of the API and Dashboard, of every region and of object storage. - **Maintenance:** the maintenance log. Zerops reports maintenance per region, as one entry for as long as the work in the region takes. An entry names no servers, projects or services. - **Previous incidents:** the incident history with all updates. - **Times:** all in UTC. - **Updates:** subscribe to the [RSS feed](https://status.zerops.io/feed.rss), which carries every incident and maintenance. E-mail subscriptions are not available. A maintenance or an incident of **API & Dashboard** affects the GUI, the API, zCLI and new deploys. Your running services keep serving. ## SLA and compensation {#sla} Zerops does not guarantee an uptime percentage. Scheduled downtime for maintenance gives no claim to compensation. For a service failure, the [Terms and Conditions](https://docs.google.com/document/d/e/2PACX-1vShf30OdwdQDQgasDJIx39jpcC9KJ5bMQVM2POUrGN0CIN0X60TTpeDv6XqoW9w64JcmKhjJ5A_Q7--/pub) limit the compensation and require a written report within 24 hours of its start. ## Contact support {#contact-support} A downtime of a few minutes during a maintenance of your region is expected for a setup that is not highly available. Contact support when: - a highly available setup was unavailable for longer than a short failover, - a service did not come back after the maintenance, - the downtime matches no maintenance. Write to [support@zerops.io](mailto:support@zerops.io) with your project ID or service ID, the time of the downtime in UTC and what you observed.