Linux command
doctl-databases-maintenance-window 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Get maintenance window
doctl databases maintenance-window get [cluster_id]
Update maintenance window
doctl databases maintenance-window update [cluster_id] --day [monday] --hour [02:00]
说明
doctl databases maintenance-window manages the maintenance window for DigitalOcean managed database clusters. Maintenance includes updates and patches applied during this window. DigitalOcean performs automated maintenance on managed databases including security patches, version updates, and system optimizations. The maintenance window defines when these operations can occur, allowing you to schedule them during low-traffic periods to minimize impact on your applications. You can configure both the day of the week and the hour (in UTC) when maintenance should begin. Planning the window around your application's usage patterns helps ensure maintenance doesn't affect peak traffic times.
参数
- --day _string_
- Day of week (monday through sunday).
- --hour _string_
- Hour in UTC (00:00 through 23:00).
FAQ
What is the doctl-databases-maintenance-window command used for?
doctl databases maintenance-window manages the maintenance window for DigitalOcean managed database clusters. Maintenance includes updates and patches applied during this window. DigitalOcean performs automated maintenance on managed databases including security patches, version updates, and system optimizations. The maintenance window defines when these operations can occur, allowing you to schedule them during low-traffic periods to minimize impact on your applications. You can configure both the day of the week and the hour (in UTC) when maintenance should begin. Planning the window around your application's usage patterns helps ensure maintenance doesn't affect peak traffic times.
How do I run a basic doctl-databases-maintenance-window example?
Run `doctl databases maintenance-window get [cluster_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --day _string_ do in doctl-databases-maintenance-window?
Day of week (monday through sunday).