Database Restarts

This guide explains how to use the Restart interface to perform a rolling restart of your database. The operation is managed through a MongoDBOpsRequest, which ensures the restart is carried out safely and tracked in your cluster.


1. Getting Started

To begin, select Restart from the Operations section in the left sidebar.

You will land on the Restart form, which contains one main section:

  • OpsRequest Options — Configure how the restart operation is executed, including timeout and apply policy.

Restart form showing OpsRequest Options panel


2. Configuring the Restart

Expand the OpsRequest Options panel to configure the restart operation.

  1. Timeout: Specify the maximum time allowed for the restart to complete. Use formats like 30sec, 1min, or 2h. Defaults to 1h if left unchanged.
  2. Apply: Choose when the OpsRequest should be applied:
    • IfReady — The restart will only be applied if the database is in a ready state. This is the recommended option.
    • Always — The OpsRequest will be applied regardless of the database's current state.

Restart form filled with Timeout 1h and Apply set to IfReady

Tip: Use IfReady to avoid triggering a restart on an already unhealthy database, which could worsen its state.

  1. Preview: Once your settings are configured, click Preview to review the generated OpsRequest before applying it.

3. Review and Submit

The Preview page displays the full MongoDBOpsRequest manifest that will be applied to your cluster. Review it carefully to confirm all settings are correct.

Preview page showing the generated MongoDBOpsRequest YAML manifest for Restart

  • The manifest is shown in YAML view by default. Use the JSON button to switch to JSON format if preferred.
  • Use the Copy button to copy the manifest to your clipboard.
  • Click Previous to go back and adjust your settings if needed.

Tip: You can directly edit the YAML or JSON on this page before submitting. This is useful for making precise adjustments beyond what the form fields expose.

  1. Submit: Once satisfied, click Submit to trigger the restart on your database.

Note: After submitting, a MongoDBOpsRequest of type Restart will be created in your cluster. You can monitor its progress from the OpsRequests section in the sidebar.


Quick Reference

ActionHow to do it
Open the Restart formOperationsRestart in the left sidebar
Set operation timeoutOpsRequest Options → enter a value in the Timeout field
Control when restart appliesOpsRequest Options → select IfReady or Always under Apply
Review the generated manifestClick Preview
Edit as YAML/JSON before applyingUse the YAML / JSON toggle on the Preview page
Apply the restartClick Submit on the Preview page