Custom O&M operations

更新时间:
复制 MD 格式

When you create a private service, you can define custom O&M operations for your service instances. You can automate these operations by using a CloudOps Orchestration Service (OOS) template or by linking to an O&M manual that you provide. This topic describes how to configure custom O&M operations.

Background

The O&M management feature in Compute Nest lets you create custom operations. When you create a service, you can add custom OOS templates and links to O&M manuals based on the service's specific needs. This helps customers quickly perform O&M on service instances.

After a customer creates a service instance, they can perform O&M on it in the Compute Nest console. Supported operations include using common management templates for tasks such as elastic scaling, starting instances in bulk, or uploading files to multiple ECS instances, as well as custom operations defined by the service provider or the customer.

As a service provider, you can create two types of custom operations: those based on an OOS template and those that link to an O&M manual.

  • OOS template: Define a custom operation by providing an OOS template. You can add a template in three ways: manual entry, selecting an existing custom template, or providing a template URL. For more information about how to write templates, see Create a template.

  • Link to an O&M manual: Provide a URL to a webpage with O&M instructions. Customers can follow the instructions at the link to manage their service instances.

Configure custom O&M operations

  1. Log on to the Compute Nest console.

  2. In the left-side navigation pane, choose My Services. On the My Services page, select the Created Services tab, and then click Create Service.

  3. On the Create Service page, select a private service and configure its details.

    This section describes only the parameters required for configuring custom O&M. For information about other parameters, see Create a private service.

    1. In the Service O&M section, click Add O&M Operation.

    2. In the Add O&M Operation dialog box, configure the parameters.

      You can configure Custom O&M Items or Basic O&M Items.

      • Custom O&M Items: Choose an OOS Template or a Page URL.

        • If you select OOS Template, configure the following parameters.

          Parameter

          Description

          Operation name

          Enter a name for the O&M operation.

          Operator

          Set the operator for custom O&M. You can select All or Customer as the Operator.

          If you set Operator to All, both the service provider and the customer have permission to perform the operation. If you set Operator to Customer, only the customer has permission.

          Import method

          Select the import method for the OOS template. Valid values: Manual Import, Custom Template, and Template URL.

          • If you select Manual Import, enter the OOS template content in the Template Content field.

          • If you select Custom Template, select the region and template name. The content automatically populates the Template Content field.

          • If you select Template URL, enter a valid HTTP or HTTPS template URL and click Verify URL. After the URL is verified, the template content automatically populates.

        • If you select Page URL, configure the following parameters.

          Parameter

          Description

          Operation name

          Enter a name for the O&M operation.

          Operator

          Specify who can perform this operation. Valid values are All and Customer.

          Custom O&M page link

          Enter the URL of the service provider's O&M manual. You can enter a static URL or use the {{output}} variable to reference an output parameter from the service template.

      • Basic O&M Items: On this tab, you can select the basic O&M operations to enable, including start, stop, and restart.

        The actual behavior of basic O&M operations varies by service scenario.

        • For ECS-based services, these operations start or stop the ECS instance.

        • For services based on Container Service for Kubernetes (ACK), you must select the parameter that represents the number of Pods. The stop operation sets the number of Pods to 0, and the restart operation restores the Pod count to its original value. In the Add O&M Operation dialog box, select the operations you want to enable, such as start, stop, and restart. If the service is based on ACK, you must also select the parameter that represents the number of Pods, such as replicaCount, and then click OK.

  4. Click Create Service, and then click OK in the confirmation dialog box.

Perform service instance O&M

After the service instance is deployed, go to the Application O&M tab on the service instance details page. From there, click the O&M Management tab to view operations preset by the service provider in the O&M Operations section. Quick operations include restart, stop, Expand Disk, and Run Commands on ECS Instances in Batches. Common O&M operations include Send Remote Commands, Upload Files, Install/Uninstall Extensions, Clean Up Disks, elastic scaling, and Custom Tasks.