From c866f8bf6c408477330fa1e49af08216a30cf5d0 Mon Sep 17 00:00:00 2001 From: Mike Fowler Date: Fri, 17 Feb 2017 23:33:47 +0000 Subject: [PATCH] provider/google-cloud: Add maintenance window (#12042) * provider/google-cloud: Add maintenance window Allows specification of the `maintenance_window` within the `settings` block. This controls when Google will restart a database in order to apply updates. It is also possible to select an `update_track` to relatively control updating between instances in the same project. * Adjustments as suggested in code review. --- r/sql_database_instance.html.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/r/sql_database_instance.html.markdown b/r/sql_database_instance.html.markdown index 9321bf09..d07c0fff 100644 --- a/r/sql_database_instance.html.markdown +++ b/r/sql_database_instance.html.markdown @@ -134,6 +134,17 @@ The optional `settings.location_preference` subblock supports: * `zone` - (Optional) The preferred compute engine [zone](https://cloud.google.com/compute/docs/zones?hl=en). +The optional `settings.maintenance_window` subblock for Second Generation +instances declares a one-hour [maintenance window](https://cloud.google.com/sql/docs/instance-settings?hl=en#maintenance-window-2ndgen) +when an Instance can automatically restart to apply updates. It supports: + +* `day` - (Optional) Day of week (`1-7`), starting on Monday + +* `hour` - (Optional) Hour of day (`0-23`), ignored if `day` not set + +* `update_track` - (Optional) Receive updates earlier (`canary`) or later +(`stable`) + The optional `replica_configuration` block must have `master_instance_name` set to work, cannot be updated, and supports: