Updated on 2026-11-24 GMT+08:00

QoS Traffic Control Overview

Scenarios

In cloud computing, multiple buckets often share network resources, and core and non-core services share bandwidth. Both latency-sensitive services, such as transaction processing and payment services, and non-real-time traffic, such as log backup traffic, require a stable network environment. At the same time, bandwidth costs must be controlled and resource abuse prevented. However, bandwidth and system resources are limited. Resource contention among services and excessive bandwidth consumption by non-core traffic can cause critical services to experience slowdowns, packet loss, and high latency. Sudden traffic spikes and bandwidth abuse can also lead to unexpected costs and even affect overall service stability.

To help you allocate resources based on service and traffic characteristics and address issues such as resource contention among tenants, fluctuations in service performance, and unpredictable bandwidth costs, OBS provides a quality of service (QoS) feature. QoS traffic control helps maintain network quality across different types of services.

Background

The following concepts may help you better understand QoS:

  • QPS: Queries per second (QPS) is the number of requests a system can handle per second. It reflects request-processing efficiency, throughput, and the maximum load a service can handle. With QoS, you can configure a QPS limit for a bucket.
  • Bandwidth: Bandwidth is the amount of data that can be transferred per second, measured in bytes per second (byte/s). It indicates network transmission capacity and determines whether a system can quickly return request results to clients. With QoS, you can configure a bandwidth limit for a bucket.
  • Concurrent requests: The number of requests being processed at the same time. This metric indicates how well a system handles sudden traffic spikes and concurrent access by multiple users. With QoS, you can configure a concurrent request limit for a bucket.
  • Traffic control: A rate-limiting mechanism that restricts the number of requests, the number of concurrent requests, or the bandwidth consumed within a given period. It prevents system resources from being exhausted and helps maintain service availability and overall stability. Traffic control is triggered when requests to a bucket exceed its configured QPS, bandwidth, or concurrent request limit. In this case, requests may take longer to process or fail with HTTP 429 errors. For example, if an attacker sends a large number of malicious requests to exhaust system resources and disrupt normal services, traffic control can limit request rates and reduce the impact of abnormal traffic on legitimate services.
  • Cluster: A cluster is a resource pool consisting of multiple independent compute or storage nodes connected through a network and managed by a distributed scheduling system. After a bucket is created, it is assigned to a cluster. Access to the bucket and its objects consumes resources in that cluster. Each account has QPS, bandwidth, and concurrent request limits in each cluster. For details, see Viewing Account-Level QoS for a Cluster.
  • Bucket-level QoS rule: A rule that applies to a single bucket or parallel file system and limits its QPS, bandwidth, and number of concurrent requests. Access to the bucket is subject to these limits. You can create bucket-level QoS rules, but the configured limits cannot exceed the account-level QoS limits of the cluster to which the bucket or parallel file system belongs.
  • Account-level QoS rule: A rule that applies to a single account in a cluster and limits the account's QPS, bandwidth, and number of concurrent requests in that cluster. The bucket-level QoS limits configured for buckets under the account cannot exceed these account-level limits. Account-level QoS rules cannot be customized.

    If your account requires higher QPS, bandwidth, or concurrent request limits for a cluster, submit a service ticket to contact technical support.

Constraints

  • Currently, only bucket-level QoS rules can be created by users. To adjust account-level QoS rules, submit a service ticket to contact technical support. If no bucket-level QoS rule is configured for a bucket, the bucket can use up to the maximum cluster resources available to the account.
  • If there is no limit on the metrics of the cluster to which the bucket belongs, the maximum value that can be configured for the corresponding bucket-level metric is 263 – 1.
  • Traffic control is triggered when either the QPS or bandwidth threshold is exceeded. When this happens, request latency increases, and the response includes the x-obs-qos-delay-time header, which indicates the duration for which the request was throttled, in milliseconds (ms). Upload requests (such as PUT uploads and part uploads) return the exact throttling duration. However, download requests (such as object downloads) only return an estimate based on the degree of throttling and the object size.
  • Traffic control is triggered when the concurrent request threshold is exceeded. When this happens, requests fail immediately with HTTP 429. When QPS or bandwidth traffic control is triggered, the resulting increase in request latency can also lead to more concurrent requests.

How It Works

The following example uses three buckets in cluster A in region 1 to illustrate how bucket-level traffic control works. Cluster A contains three buckets: bucket A, which hosts critical services; bucket B, which serves as a standby for bucket A; and bucket C, which is reserved for other services.

Assume that cluster A supports a maximum of 1,000 concurrent requests. The following describes how traffic is controlled with and without bucket-level traffic control policies:

  • Without bucket-level traffic control policies: Each of buckets A, B, and C can handle up to 1,000 concurrent requests. If all three buckets are accessed concurrently and buckets B and C together account for 80% (800) of the cluster's maximum concurrent requests, bucket A can handle only 20% (200) of the cluster's maximum. As buckets B and C consume most of the cluster's resources, requests to bucket A may experience increased latency.
    Figure 1 Without bucket-level traffic control policies
  • With bucket-level traffic control policies: Based on the service requirements of the three buckets, you can leave bucket A's maximum concurrent request limit unset or set it to 1,000 and set the limits for buckets B and C to 200 and 100, respectively. This way, even when buckets B and C each reach their respective limits (200 and 100) at the same time, bucket A can still handle up to 700 concurrent requests, helping ensure stable service operation.
    Figure 2 With bucket-level traffic control policies