Configuring Maintenance Windows

Maintenance windows allow administrators to automatically fulfill change requests and VM rightsizing recommendations during expected, well-known times.

You can adjust the schedule and frequency of maintenance windows. Commander has a default maintenance group that all services (except custom components) and cloud accounts are assigned to.

If you need distinct windows for different organizations, or for production and development services, you can create additional maintenance groups and configure their schedules. You can then assign these maintenance groups to your existing services and cloud accounts. Each service and cloud account can only be assigned a single maintenance group.

You can also automatically assign a maintenance group to new services and cloud accounts.

Notes:  

  • When a change request is set to be fulfilled during the assigned maintenance window, a scheduled task is created upon request approval. If a change request can't be fulfilled during the maintenance window (for example, if there isn't enough time to fulfill all requests), the request is scheduled during the next window.
  • Once maintenance windows are defined, they can also be used during manual change request fulfillment.

Here are a few examples of how maintenance windows can be used:

  • VM resource changes — A user submits a resource change request that requires powering down the VM. The approval workflow for the change request form is configured to fulfill disruptive requests during the maintenance window.
  • Virtual service decommissioning — A user submits a request to decommission a virtual service. The requester uses the Schedule form element to specify that the virtual service should be decommissioned during the maintenance window.
  • Database backup — A user submits a request to backup a database. The form used for the change request contains an approval workflow that's configured to fulfill requests during the maintenance window. It also contains a completion workflow with an Execute Script step that will run the backup if approved.
  • Kubernetes cluster changes — A user submits a change request to resize a Kubernetes cluster. An administrator sets a maintenance group for a cloud account (in this case, a Kubernetes cluster), then defines a change request form that allows Commander users to make a resizing request for the cluster. When a change request is submitted, fulfillment of that request can be automatically scheduled in the next maintenance window.

In this topic:

Steps to configure maintenance windows

The basic steps to configure maintenance windows are:

  1. Configure maintenance groups.

    You can create one or more maintenance groups, or edit the default maintenance group.

  2. Set maintenance groups for existing services and/or existing cloud accounts.

    If you've created additional maintenance groups, assign existing services and/or cloud accounts to the new maintenance groups.

  3. Set maintenance groups for new services and/or cloud accounts.
  4. To ensure that change requests are automatically fulfilled during the maintenance window, configure the proper automation options in your change request approval workflows.

    For example,

    • create an approval workflow that causes change requests requiring a power-down to be automatically fulfilled during the next maintenance window 
    • add conditional workflow steps that execute only when the change requires a power-down, allowing you fine-grained control over change request approval and fulfillment
  5. Optional: Allow Service Portal users to schedule changes.

Configuring maintenance groups

Access through:

Configuration > Groups > Maintenance

Available to:

Commander Role of Superuser and Enterprise Admin

Administrator Access Rights

To configure a maintenance group:

  1. On the Maintenance page, do one of the following:
    • To configure the default maintenance group, select the default maintenance group and click Edit.

      By default, all services and cloud accounts are assigned to the default maintenance group.

    • To add a new maintenance group, click Add.
  2. In the Maintenance Group dialog that displays, provide a name for the group, with an optional description, and then select Next.
  3. Tips:  

    • Give the group a descriptive name that will readily make sense to administrators and service owners viewing the service's Maintenance Group property. For example, for a nightly maintenance window on weekends from 1:00 to 3:00 am, you might name it "Sat-Sun 1-3 am EST".
    • The schedules use the time on the Commander application server. If you have Service Portal users in multiple time zones, set an appropriate schedule name and description (for example, including the time zone), to make sure the schedule is clear to users.
  4. On the Maintenance Window page, configure the frequency and schedule as required, and click Next.
  5. Clear the Enable Schedule option and click Next.
  6. On the Summary page, review the settings and click Finish.

Setting maintenance groups for existing services and cloud accounts

By default, all services and cloud accounts are assigned to the default maintenance group. However, you can add services and cloud accounts to other maintenance groups.

Notes:  

  • If you change a maintenance group assignment, any unfulfilled change requests are automatically rescheduled to the new group's maintenance window.
  • A maintenance group set for a cloud account isn't inherited by its children.

Access through:

Views > Inventory > Infrastructure, Applications, or Storage

Available to:

Administrator and All Operator Levels of Access Rights

To set a specific maintenance group for existing services or cloud accounts:

  1. Do one of the following:
    • Services — From the tree, select a service, then select Actions > Change Management > Set Maintenance Group.
    • Cloud accounts — From the tree, select a cloud account, then select Actions > Set Maintenance Group
  2. In the Set Maintenance Group dialog, select the appropriate group and click OK.

Tip: You can see a maintenance group assignment on the Details section of the Summary tab. For information about displaying the maintenance group on the Details section, see Customizing the Commander Display. The Maintenance Group property is in the Lifecycle category.

Setting maintenance groups for new services

A maintenance group can be set when a service is deployed; through:

  • the service catalog
  • completion workflows
  • policies

See Guidance for assigning groups to new services to learn which method is best for your situation.

Allow Service Portal users to schedule changes

You can optionally allow Service Portal users to:

  • schedule their own change request fulfillment — If you add the Schedule element to the Change Request form, users with access to this form can schedule their change requests at a specific time, immediately, or during the maintenance window. See Designing form appearance and content for more information.

    Note: The Schedule form element takes precedence over the automation options in the approval workflow for change requests.

  • schedule VM rightsizing recommendations during the maintenance window — Service Portal users with the Schedule Maintenance Tasks permission can schedule the application of rightsizing recommendations during the maintenance window. See Rightsizing VMs for more information.

Viewing tasks scheduled in a maintenance window

Access through:

Tools > Scheduled Tasks

Available to:

All Access Rights Levels

Commander Role of Superuser can Override Schedules

To view all tasks scheduled in a maintenance window, go to Tools > Scheduled Tasks and sort the list on the Maintenance Group column.

Tip: You can edit or cancel these scheduled tasks. See Scheduling Tasks.

Deleting maintenance groups

When you delete a maintenance group, its members are automatically reassigned to the default maintenance group, and all its scheduled tasks are automatically rescheduled to the default maintenance window.

Note: It's not possible to delete the default maintenance group, but you can disable maintenance windows.

Access through:

Configuration > Groups > Maintenance

Available to:

Commander Role of Superuser and Enterprise Admin

Administrator Access Rights

To delete a maintenance group, select a listed maintenance group, and click Delete.

Disabling maintenance windows

When the maintenance window for a maintenance group is disabled, any services or cloud accounts assigned to that maintenance group will have no maintenance window.

When a maintenance window is disabled:

  • All tasks scheduled for the window are halted until the maintenance window is re-enabled.
  • The option to schedule a change request fulfillment or apply a recommendation in the maintenance window is no longer displayed.

Access through:

Configuration > Groups > Maintenance

Available to:

Commander Role of Superuser, Enterprise Admin

To disable the maintenance window for a maintenance group:

  1. On the Maintenance Groups page, select a maintenance group, and click Edit.
  2. In the Maintenance Group dialog, click Next.
  3. On the Maintenance Window page, clear the Enable Schedule option.
  4. Click Next.
  5. On the Summary page, click Finish.