Maintenance windows

This page explains maintenance windows, which provide control over when disruptive service maintenance such as security patches can occur on your Dataproc Metastore services.

Overview

Maintenance windows give you fine-grained control over when maintenance can occur in order to mitigate potential transient disruptions to your workloads. These disrupting maintenance do not happen very often, but in some cases, may require server restart to apply urgent fixes.

Maintenance windows are useful for the following types of scenarios, among others:

  • Off-peak hours: You want to minimize the chance of downtime by scheduling automatic upgrades during off-peak hours when traffic is reduced.
  • On-call: You want to ensure that upgrades happen during working hours so that someone can monitor the upgrades and manage any unanticipated issues.
  • Multi-cluster upgrades: You want to roll out upgrades across multiple services in different regions one at a time at specified intervals.

Maintenance windows are scheduled to last up to two hours at most. If tasks run beyond the window, Dataproc Metastore attempts to pause the operation and resume it during the next maintenance window.

Dataproc Metastore reserves the right to roll out emergency upgrades outside of maintenance windows.

Configure a maintenance window

You can configure separate, repeating maintenance windows for each of your Dataproc Metastore services.

To configure a maintenance window, you configure the day of the week and hour of the day when it starts. For example, you can configure a maintenance window that recurs every Friday at 6:00 AM.

You can configure a maintenance window using the Google Cloud console.

Create a service with a maintenance window

To create a maintenance window for a new service:

Console

  1. In the Google Cloud console, open the Dataproc Metastore page:

    Open Dataproc Metastore in the Google Cloud console

  2. At the top of the Dataproc Metastore page, click the Create button. The Create service page opens.

  3. Configure your service as desired.

  4. Under Maintenance window, select the Day of week.

  5. Then select the Hour of day.

  6. Click Submit.

Configure a maintenance window for an existing service

To create or modify a maintenance window for an existing service:

Console

  1. In the Google Cloud console, open the Dataproc Metastore page:

    Open Dataproc Metastore in the Google Cloud console

  2. On the Dataproc Metastore page, click the service name of the service you'd like to update. The Service detail page for that service opens.

  3. Under the Configuration tab, click the Edit button. The Edit service page opens.

  4. In the Maintenance Window section, select the Day of week.

  5. Then select the Hour of day.

  6. Click the Submit button to update the service.

What's next