Individuazione e impostazione dei periodi di manutenzione
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina fornisce istruzioni su come trovare la manutenzione pianificata, impostare i periodi di manutenzione, riprogrammare la manutenzione pianificata e altro ancora. Per una panoramica degli aggiornamenti di manutenzione e dei periodi di manutenzione, consulta la policy di manutenzione.
Impostare una finestra preferita per la manutenzione su un'istanza
Console
Vai alla pagina Memorystore for Redis nella Google Cloud console.
Memorystore for Redis
Fai clic sull'ID istanza per la quale vuoi impostare un periodo di manutenzione.
Fai clic su Modifica.
Nella sezione Manutenzione, seleziona il giorno e l'ora del periodo di manutenzione. L'ora sia impostata nel fuso orario locale.
Fai clic su Salva.
gcloud
Esegui il seguente comando per impostare una finestra di manutenzione per un'istanza Redis:
Nella riga di Memorystore, imposta il pulsante Email su ON.
Un'email di notifica della manutenzione utilizza il titolo "Upcoming maintenance for your
Cloud Memorystore instance [your-instance-name]". Ogni indirizzo email che deve ricevere le notifiche deve essere attivato separatamente.
Le notifiche di manutenzione vengono impostate a livello di progetto anziché sulle istanze.
Le notifiche via email vengono inviate all'indirizzo email associato al tuo account Google. Non è possibile configurare un alias email personalizzato (ad esempio un alias email di gruppo).
Trovare la manutenzione programmata
Se è stata pianificata la manutenzione per la tua istanza, puoi visualizzarla seguendo le seguenti istruzioni:
Console
Vai alla pagina Memorystore for Redis nella Google Cloud console.
Memorystore for Redis
Fai clic sull'ID istanza per la quale vuoi visualizzare la manutenzione pianificata.
Nella sezione Manutenzione puoi visualizzare la data e l'ora di eventuali aggiornamenti di manutenzione pianificati.
RESCHEDULE_TYPE è il tipo di aggiornamento riprogrammato. I valori disponibili sono:
IMMEDIATE: avvia immediatamente l'aggiornamento di manutenzione
NEXT_AVAILABLE_WINDOW: rimanda la manutenzione alla prossima finestra di manutenzione. Il periodo di manutenzione successivo è a una settimana dal periodo in cui la manutenzione è stata pianificata inizialmente
SPECIFIC_TIME: consente di designare un'ora specifica per l'aggiornamento.
L'ora riprogrammata non deve superare i sette giorni dall'ora del
periodo di manutenzione originale
RESHEDULE_TIME Puoi specificare questo valore solo se imposti --reschedule-type su SPECIFIC TIME. Questo valore utilizza il formato ISO 1801. Ad esempio: 2020-01-16T16:56:00.000Z. L'ora è impostata nel fuso orario UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-08 UTC."],[],[],null,["# Find and set maintenance windows\n\nThis page provides instructions how to find scheduled maintenance, set\nmaintenance windows, reschedule planned maintenance, and more. For an overview\nof maintenance updates and maintenance windows, see [Maintenance policy](/memorystore/docs/redis/maintenance-policy).\n\nSet a preferred window for maintenance on an instance\n-----------------------------------------------------\n\n### Console\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console.\n\n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n\n2. Click the instance ID of the instance you want to set a maintenance window\n for.\n\n3. Click **Edit**.\n\n4. Under the **Maintenance** section, select the desired day and time for the\n maintenance window. The time is set in your local time zone.\n\n5. Click **Save**.\n\n### gcloud\n\nRun the following command to set a maintenance window for a Redis instance: \n\n```\ngcloud redis instances update INSTANCE_ID --region=REGION --maintenance-window-day=DAY --maintenance-window-hour=HOUR\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e is the ID of the instance\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e is the region where your instance is located\n- \u003cvar translate=\"no\"\u003eDAY\u003c/var\u003e is the day you want maintenance to occur. Acceptable values are: `MONDAY`,`TUESDAY`,`WEDNESDAY`,`THURSDAY`,`FRIDAY`,`SATURDAY`,`SUNDAY`\n- \u003cvar translate=\"no\"\u003eHOUR\u003c/var\u003e is the hour of the day in UTC time for when the maintenance window starts. Acceptable values are `0`-`23`\n\nFor reference information, see [`gcloud redis instances update`](/sdk/gcloud/reference/redis/instances/update)\n\nOpt in to maintenance notifications\n-----------------------------------\n\n| **Note:** Even if you turn on maintenance notifications, you do not receive notifications unless you [set a maintenance window](/memorystore/docs/redis/finding-and-setting-maintenance-windows#set_a_preferred_window_for_maintenance_on_an_instance) for that instance.\n\nTo turn on maintenance notifications:\n\n1. Go to the **Communication** page in the Google Cloud console:\n\n [Communication](https://console.cloud.google.com/user-preferences/communication)\n2. Click the **Product Notifications** tab.\n\n3. Select your project from the dropdown menu.\n\n4. In the row for Memorystore, toggle the email button to **ON**.\n\nA maintenance notification email uses the title, `\"Upcoming maintenance for your\nCloud Memorystore instance [your-instance-name]\"`. Each email address that\nneeds to receive notifications must opt in separately.\n\nMaintenance notifications are set at the project level rather than on instances.\nEmail notifications are sent to the email address associated with your Google\naccount. It is not possible to configure a custom email alias (for instance, a\nteam email alias).\n\nFind scheduled maintenance\n--------------------------\n\nIf maintenance has been scheduled for your instance, you can view it using the\nfollowing instructions: \n\n### Console\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console.\n\n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n\n2. Click the instance ID of the instance that you want to view scheduled\n maintenance for.\n\n3. Under the **Maintenance** section, you can view the date and time of any\n scheduled maintenance updates.\n\n### gcloud\n\n```\ngcloud redis instances describe INSTANCE-ID --region=REGION\n```\n\nwhere:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e is the ID of the instance\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e is the region where your instance is located\n\nThe output for scheduled maintenance is as follows: \n\n```\nmaintenancePolicy:\ncreateTime: 'TIME_STAMP'\nupdateTime: 'TIME_STAMP'\nmaintenanceWindow:\n- day: DAY\n duration: 60 minutes\n hour: HOUR\nmaintenanceSchedule:\n endTime: 'TIME_STAMP'\n startTime: 'TIME_STAMP'\n```\n\nWhere:\n\n- `maintenancePolicy` shows information on the creation time of your preferred maintenance policy and the last time the policy was updated.\n- `createTime` is when the maintenance policy is first created.\n- `updateTime` is when the maintenance policy was last updated.\n- `DAY` indicates the day of the week maintenance occurs.\n- `HOUR` indicates the hour in UTC time that maintenance begins.\n- `startTime` indicates the specific start time for a maintenance update that is scheduled for your instance.\n- `endTime` indicates the specific ending time for a maintenance update that is scheduled for your instance.\n- `TIME_STAMP` uses the RFC 3339 format.\n\nReschedule planned maintenance\n------------------------------\n\n| **Caution:** if you programmatically reschedule maintenance in bulk requests (not natively supported by Memorystore for Redis), limit batch reschedule sizes to 100 instances per batch. For more information, see [Rescheduling maintenance](/memorystore/docs/redis/maintenance-policy#rescheduling_maintenance).\n\nTo reschedule maintenance, see the instructions below: \n\n### Console\n\n| **Note:** You can only defer a maintenance update for up to one week from when a maintenance update is originally scheduled for your instance.\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console.\n\n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n\n2. Click the instance ID of the instance you want to reschedule maintenance\n for.\n\n3. Under the **Maintenance** section, click **RESCHEDULE**.\n\n - You can only reschedule maintenance if you [have a scheduled update](/memorystore/docs/redis/finding-and-setting-maintenance-windows#find_scheduled_maintenance), for your instance.\n4. Choose between **Update now** , **Defer to next scheduled window** , and\n **Custom day and time** . For more information, see the [overview of rescheduling maintenance](/memorystore/docs/redis/maintenance-policy#rescheduling_maintenance).\n\n - If you want to update your instance immediately, select **Update now**\n and click **Update**.\n\n - If you want to delay the scheduled maintenance by one week, select\n **Defer to the next scheduled window** and click **Reschedule**.\n\n - If you want to designate a specific time, select **Custom day and time** ,\n choose the new time, and click **Reschedule**.\n\n### gcloud\n\n| **Note:** You can only defer a maintenance update for up to one week from when a maintenance update is originally scheduled for your instance.\n\n\u003cbr /\u003e\n\n```\ngcloud redis instances reschedule-maintenance INSTANCE_ID --region=REGION --reschedule-type=RESCHEDULE_TYPE [--schedule-time=RESHEDULE_TIME]\n```\n\nwhere:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e is the ID of the instance\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e is the region where your instance is located\n- \u003cvar translate=\"no\"\u003eRESCHEDULE_TYPE\u003c/var\u003e is the type of rescheduled update. Available values are:\n\n - `IMMEDIATE`: Starts the maintenance update immediately\n - `NEXT_AVAILABLE_WINDOW`: Defers maintenance until the next maintenance window. The next window is one week from the window in which maintenance was originally scheduled\n - `SPECIFIC_TIME`: Allows you to designate a specific time for the update. The rescheduled time must be no more than seven days from time of the original maintenance window\n- \u003cvar translate=\"no\"\u003eRESHEDULE_TIME\u003c/var\u003e You can only specify this value if you set `--reschedule-type` to `SPECIFIC TIME`. This value uses the ISO 1801 format. For example, `2020-01-16T16:56:00.000Z`. The time is set in UTC time.\n\nFor reference information, see [gcloud redis instances reschedule-maintenance](/sdk/gcloud/reference/redis/instances/reschedule-maintenance).\n\nWhat's next\n-----------\n\n- View the [permissions](/memorystore/docs/redis/access-control#maintenance_windows_permissions) required to manage maintenance windows for your Redis instance."]]