All Products
Search
Document Center

:How do I troubleshoot bandwidth or QPS overrun for buckets in OSS?

Last Updated:Nov 29, 2024

Overview

If the bandwidth or queries per second (QPS) of a bucket exceeds the default limit, the bucket may be throttled. This topic describes how to troubleshoot bandwidth or QPS overrun for buckets in Object Storage Service (OSS).

Methods

Log on to the OSS console. In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the bucket whose bandwidth or QPS you want to view. In the left-side navigation tree, choose Data Usage > Basic Statistics to view the resource usage. If the bandwidth or QPS of the bucket exceeds the default limit, you can use the following methods to troubleshoot bandwidth or QPS overrun for the bucket.

Note
  • Bandwidth limit: 10 Gbit/s in regions in the Chinese mainland and 5 Gbit/s in regions outside the Chinese mainland. If the bandwidth limit is reached, requests are throttled.

  • QPS limit: 10,000. If the QPS limit is reached, requests beyond the limit are denied.

  • For more information about the limit and performance metrics of QPS, see Limits.

  1. Check whether a sudden increase in Internet service bandwidth occurs in the bucket. If a sudden increase in Internet bandwidth occurs, we recommend that you access the Content Cache Delivery Acceleration product of Alibaba Cloud Content Delivery Network (CDN) to cache OSS resources and reduce OSS Internet traffic. For more information, see Use CDN to accelerate access to OSS.

  2. If you have access to CDN products, check whether CDN service bandwidth spikes occur in the bucket. If a large number of CDN back-to-origin OSS request exist, we recommend that you increase the CDN cache time and perform the following operations to warm up the CDN side.

    Note

    For more information about how to modify the cache expiration time, see Add a cache rule.

    1. Log on to the Alibaba Cloud CDN console.

    2. In the left-side navigation pane, choose Content Delivery > Purge and Prefetch.

    3. On the Purge/Prefetch tab, configure the prefetch rules.

  3. On the Records tab, check whether you have submitted a request to refresh CDN resources.

  4. Check whether the intranet bandwidth of the bucket increased. If the intranet bandwidth increased, check whether your bucket has a reasonable access increment.

  5. Check whether the QPS of the bucket spikes more than 10,000. The request side reasonably manages the number of concurrent operations and maintains a reasonable number of retries in scenarios in which network conditions are unstable.

  6. If a sudden increase in traffic occurs, we recommend that you enable logging or real-time log query for log analysis. For more information, see Configure logging and Query real-time logs.

    You can check whether the source IP address, Referer, and UA are centralized and whether illegal requests exist. If illegal requests exist, handle the requests by referring to How do I fix abnormal traffic problems in OSS?