[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for Trino](../index.md) > [Concepts](index.md) > Maintenance

# Maintenance in Managed Service for Trino

Maintenance includes:

* Automatic installation of Trino updates and patches for hosts (including for stopped clusters).
* Other maintenance activities.

## Maintenance window {#maintenance-window}

You can set the maintenance window when [creating a cluster](../operations/cluster-create.md) or [updating its settings](../operations/cluster-update.md#change-additional-settings):

* The **At any time** option (default) allows performing maintenance at any time.
* The **By schedule** option allows you to select the day of the week and UTC time when the maintenance will be performed. For example, you can choose a time when the cluster is least loaded.

{% note info %}

To view maintenance task information, you need the `managed-trino.maintenanceTask.viewer` [role](../security.md#managed-trino-maintenanceTask-viewer) or higher.

To manage maintenance tasks, you need the `managed-trino.maintenanceTask.editor` [role](../security.md#managed-trino-maintenanceTask-editor) or higher.

{% endnote %}