Restarting a CCE Workload
You can use the Restart CCE Workload card to create a task to restart one or more CCE workloads.
Only StatefulSets and Deployments can be restarted.
Creating a Task for Restarting a CCE Workload
- Log in to the AOM 2.0 console.
- In the navigation pane, choose Automation (Retiring). The Automation page is displayed.
- In the navigation pane, choose Scenarios. On the displayed page, click the Restart CCE Workload card, or choose > Create Task in the upper right corner of the card.
- Set parameters by referring to Table 1.
Figure 1 Restarting a CCE workload
Table 1 Parameters for restarting a CCE workload Parameter
Description
Task Name
User-defined task name.
Enter up to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. By default, Auto is selected, which means that the system automatically generates a task name.
Enterprise Project
Select the enterprise project to which the task belongs.
Restart Timeout
Timeout duration for restarting a CCE workload. Enter an integer from 10 to 600.
- Select an instance.
- Click Add. The instance selection page is displayed. Up to 10 workload instances can be restarted in a single task.
- The default instance type is CCE. For Method, the default value is Specific. For details about the methods, see Table 2.
Figure 2 Creating a task for restarting a CCE workload
Table 2 Selection method description Selection Method
Description
Specific
Enter search criteria and select instances from the instance list. By default, instances are searched by name.
By filter
Select an instance by workload type, cluster name, and namespace. This method also takes effect for instances added later.
From CMDB
Enter search criteria or keywords and select instances from CMDB. There are two types of nodes:
- Static: Select a CCE instance under a specified CMDB application.
- Dynamic: Select a node in the CMDB application to dynamically obtain CCE instances under the node. This method also takes effect for instances added later.
- If needed, expand More to set the review configuration and execution policy by referring to Table 3.
Table 3 More settings Category
Parameter
Description
Review
Review
Specifies whether to enable manual review. By default, this function is disabled.
You can only modify the review configuration by modifying the atomic service card in the tool market.
Reviewer
After manual review is enabled, you need to select a reviewer.
Alternatively, create a topic and add a subscription on the SMN console to notify a reviewer.
Execution Policy
Batch Release
Specifies whether to enable batch release. By default, this function is disabled.
Instances for Each Batch
Number of instances on which tasks can be executed at the same time.
Interval
Interval for executing each batch of tasks.
- Click Execute. On the task execution page that is displayed, view the task execution status.
You can also click Save. The created task is displayed on the task management page for subsequent task execution or other operations.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot