You should schedule regular maintenance of the Operating System hosting your Octopus Server to maintain the integrity, performance, and security of your deployments.
Recovering from failure
If anything goes wrong during your Operating System maintenance you should restore the Operating System to the state just prior to applying patches and then start Octopus Server again.
You should not restore a backup of the Octopus SQL Database.
Single Octopus Server
-
Schedule a maintenance window with the teams using Octopus.
-
Go to Configuration ➜ Maintenance and enable Maintenance Mode.
-
Wait for any remaining Octopus Tasks to complete by watching the Configuration ➜ Nodes page.
-
Stop the Octopus Server service.
- At this point you are ready to perform your Operating System maintenance. You should take whatever precautions you deem necessary in order to recover the system in case of failure. That could be a VM snapshot, full disk image backup, or just the automatic Restore Point created by Windows.
-
Apply patches and reboot as required.
-
Start the Octopus Server service.
-
Exit Maintenance Mode.
Octopus High Availability
If you are using an Octopus High Availability cluster you don’t need to plan any downtime. Instead, you can just drain the tasks from each node and apply Operating System patches one at a time, while the other nodes continue to orchestrate your deployments.
For each node in your cluster:
-
Go to Configuration ➜ Nodes and put the node into drain mode.
-
Wait for any remaining Octopus Tasks on that node to complete.
-
Stop the Octopus Server service on that node.
- At this point you are ready to perform your Operating System maintenance. You should take whatever precautions you deem necessary in order to recover the system in case of failure. That could be a VM snapshot, full disk image backup, or just the automatic Restore Point created by Windows.
-
Apply patches and reboot as required.
-
Start the Octopus Server service on that node.
-
Exit drain mode for that node so it will start accepting Octopus Tasks again.
Help us continuously improve
Please let us know if you have any feedback about this page.
Page updated on Sunday, January 1, 2023