Managing Resources


Using the Stream Processing resource as an example, this topic shows how to request for resources, extend resource allocation, change resource quota, view the status of resource allocation, and set alarms for resource usage rate.

Prerequisites

Full access permission to the Resource Management module.

Procedure

The procedure for managing the Stream Processing resource is as follows:

  1. Request for the Stream Processing resource.

  2. View resource allocation status.

  3. Extend Stream Processing resource allocation.

Requesting for the Stream Processing Resource

  1. Log in to the EnOS Management Console and click Resource Management > Resource List from the left navigation panel.

  2. Under the Data Management tab, click the Request Resource button for Stream Processing resource.

    ../_images/requesting_resource.png
  3. View description of the resource specification, estimate the needed resources, and select a resource type.

  4. Click the Request Now button to submit the request. The system will allocate resources according to the request review result.

    ../_images/selecting_spec.png

Viewing the Resource Allocation Status

After submitting the resource request, return to the Resource List page to view the status of the resource allocation.

  • The status Allocating indicates that the resource allocation is still in progress.

  • The status Allocated indicates that the resource allocation is completed. You can start the published stream processing jobs. For details about stream processing job operation, see Monitoring the Stream Processing Job.

Managing Resource Runtime Status

The resource of instance type has running status. The user applies for a resource instance. After the successful application, the user not only obtains the permission to use this part of resource, but also can create a service instance by using the resource, and the corresponding service capability is provided by the instance.

Currently, the resources that support managed resource health are as follows:

  • Strean Processing Resource > Pipeline Design

  • Batch Processing - Container Resource > Design Mode

  • Data Catalog Resource

  1. Click the Start icon on the Resource Management page.

  2. When the status is Running, users can create service instances using resources.

Note

  • After the quota change is successful, the resource running status is still Stopped, and the user needs to start the resource instance manually.

Extending Resource Allocation

If the allocated resource cannot meet the growing business needs, you can extend the resource allocation.

  1. On the Resource List page, find the resource request with Allocated status.

  2. Click the Change Quota icon.

  3. Select a higher resource specification and click the Request Now button.

  4. View the status of new resource allocation. When the new resource specification is displayed in the resource specification column, and the status is changed to Allocated, the resource expansion is completed successfully.

Changing Resource Quota

If the allocated resource exceeds the business needs, you can change the resource quota.

  1. On the Resource List page, find the resource request with Allocated status.

  2. Click the Change Quota icon.

  3. Select a lower resource specification and click the Request Now button.

  4. View the status of new resource allocation. When the new resource specification is displayed in the resource specification column, and the status is changed to Allocated, the resource quota is scaled down successfully.

Note

If the resources currently in usage are more than the scaled down resource specification, you need to release resources (such as stopping stream processing jobs) first, and then request to change the resource quota.

Setting Alarms for Resource Usage Rate

To avoid the impact of insufficient resources on normal business operations, you can set alarms for the resource usage rate.

  1. On the Resource List page, click the Alarm Setting icon.

  2. Enable the Resource Usage Alert switch and set the resource usage alert threshold (0.1 ~ 1.0).

  3. Select receivers for the alerts. At most 3 receivers can be selected.

  4. Select the alert sending mode, through email or SMS.

  5. Click Confirm to save.

    • Currently, the following resources support alarm setting:

      • Device File Storage resource

      • Batch Processing - Queue resource

      • Data Catalog resource

      • Data Archiving resource

      • File Storage HDFS resource

      • Data Warehouse Storage resource

      • Stream Processing resource

      • Time Series Database resource

Deleting Resources

Before using product functions such as streaming computing, big data, TSDB, etc., you must first request for the resources. If the requested resources are no longer needed after using for a period of time, in order to avoid resource waste, you can delete the corresponding resources through resource deletion.

Note

  • The resource deletion function is temporarily unavailable for some resources.

  • Once the resource is deleted, stored data cannot be restored.

  1. On the Resource Management > Resource List page, find the resource that you want to delete and click the Delete icon.

  2. If no functions are using the resource, after confirming the deletion, the system will completely delete it. If there are functions that are using the resource, you need to delete the associated objects in the prompted module first, and then return to the Resource List page to delete the resource.

    • Currently, the following resource(s) do not support resource deletion:

      • Device File Storage

Deleting Stream Processing Resource

The system will delete the resource if there are no stream processing jobs that are running. If there are, you need to stop the running jobs first and delete them before being able to delete the Stream Processing Resource. For the steps to stop a stream processing job, see Operating and Maintaining the Job.

Viewing Resource History

  1. On the Resource Management > Resource List page, find the resource that you want to view and click the Resource History icon.

  2. On the Resource History page, you can view the basic information and change record of the resource. For details, see Viewing Resource History.