Creating a SmartQoS Policy

This section describes how to create a directory-level QoS policy.

Prerequisites

An account has been created.

Procedure

  1. Choose Resources > Tuning > SmartQoS > Directory.
  2. Select a desired account from the Account drop-down list in the upper left corner.
  3. Click Create.

    The Create QoS Policy page is displayed.

  4. Set a QoS policy name.

    • The name must be unique.
    • The name can contain only digits, letters, hyphens (-), and underscores (_), and must start with a digit or letter.
    • The name can contain 1 to 63 characters.

  5. Set the QoS policy parameters, including the fixed bandwidth upper limit and OPS upper limit.

    1. Set the bandwidth upper limit. That is, the maximum amount of I/O data that can be processed on a single directory per second. The unit is MB/s.
    2. Set the OPS upper limit. That is, the maximum number of operations that can be performed on a single directory per second.
    3. When the object service is enabled in the storage system, you can choose whether to enable Object Service Read/Write Control to control the upper limits of read and write OPS and bandwidth of the object service. After this function is enabled, you need to set the QoS policy parameters of the object service.

      Table 1 describes related parameters.

      Table 1 Object service QoS policy parameters

      Parameter

      Description

      Read Bandwidth Upper Limit

      Maximum read bandwidth on a single directory of the object service. That is, the maximum amount of data in the read requests of the object service processed by a single directory per second. The unit is MB/s.

      Write Bandwidth Upper Limit

      Maximum write bandwidth on a single directory of the object service. That is, the maximum amount of data in the write requests of the object service processed by a single directory per second. The unit is MB/s.

      Read OPS Upper Limit

      Read OPS upper limit of a single directory of the object service. That is, the maximum number of read requests of the object service that can be processed by a single directory per second.

      Write OPS Upper Limit

      Write OPS upper limit of a single directory of the object service. That is, the maximum number of write requests of the object service that can be processed by a single directory per second.

      If the sum of Read OPS Upper Limit and Write OPS Upper Limit exceeds OPS Upper Limit, OPS Upper Limit takes effect. If the sum of Read Bandwidth Upper Limit and Write Bandwidth Upper Limit exceeds Bandwidth Upper Limit, Bandwidth Upper Limit takes effect.

  6. Add a control object.

    1. Click Modify on the right of Directories.

      The Add Object page is displayed.

    2. Select a namespace to which a directory to be added belongs from the Namespace drop-down list box.

      You can add objects under different namespaces at the same time.

    3. Select a dtree to which a directory to be added belongs from the Dtree drop-down list box.
    4. Click Add. The Browse Directory page is displayed.
    5. Select a directory to be added from the list box.
      • A directory can have only one QoS policy. When creating a QoS policy, you can select directories that have been associated with other QoS policies.
      • You can click Create to create a directory. The directory name contains 1 to 255 characters, including only digits, letters, hyphens (-), and underscores (_).
      • Click the search bar and enter the full path of the parent directory. The value contains 1 to 4096 characters, including only digits, letters, hyphens (-), and underscores (_). The value must start with a slash (/) and cannot use consecutive slashes (/).
      • Click Modify in the row where a directory is located. On the Modify Directory page that is displayed, modify the access permissions of the directory.
      • You can create a multi-level directory. Click in the row of a directory to go to the directory and create a sub-directory for it, or click to return to the upper-level directory.
      • Click to refresh the directory information.
      • Enter a directory name and click and search for desired directory information.
    6. Click OK. The selected directory is added to the list box on the Add Object page.

      On the Add Object page, you can click Remove to delete directory data from the list box.

      Confirm your operation as prompted.

    7. Click OK.

      In this step, the directory has not been associated with any QoS policy. You need to click OK on the Create QoS Policy page to associate the directory with the QoS policy.

  7. Click OK.