Help Center/ Object Storage Service/ User Guide/ Object Management/ Limiting Download Speed By Single-Connection Bandwidth Throttling
Updated on 2024-10-24 GMT+08:00

Limiting Download Speed By Single-Connection Bandwidth Throttling

Scenarios

To prevent a client from using a large amount of bandwidth to access objects, you can use single-connection bandwidth throttling to limit the download speed, allowing other applications to have enough bandwidth.

You can limit download speed by:

SDK

When you use an SDK to send a request, you can only limit the download speed by single-connection bandwidth throttling. For details, see Single-Connection Bandwidth Throttling.

Object URL

Item

Description

Object

Public read or public read/write object

Method

Add the bandwidth limit parameter in the x-obs-traffic-limit=value format to the end of the URL of the shared object.

The value can be from 819200 to 838860800, in bit/s.

Scenarios

Object downloads

Example

https://bucketname.obs.cn-north-4.myhuaweicloud.com/object1?x-obs-traffic-limit=819200 indicates that the maximum download speed of object1 is 100 KB/s.

Signed URL

Item

Description

Object

Private object

Method

When you use an SDK to generate a signed URL, add the bandwidth limit parameter in the x-obs-traffic-limit=value format to the signature for calculation.

The value can be from 819200 to 838860800, in bit/s.

Scenarios

Object downloads

Example

https://bucketname.obs.cn-north-4.myhuaweicloud.com/object1?x-obs-traffic-limit=819200&Signature=signature.

Header Field

Item

Description

Object

Private object

Method

Add the bandwidth limit parameter in the x-obs-traffic-limit:value format to the header field.

The value can be from 819200 to 838860800, in bit/s.

Scenarios

Object downloads

Example

1
2
3
4
5
6
7
8
GET /object01 HTTP/1.1
User-Agent: curl/7.29.0
Host: examplebucket.obs.cn-north-4.myhuaweicloud.com
Host: examplebucket.obs.region.myhuaweicloud.com
Accept: */*
Date: WED, 01 Jul 2015 04:24:33 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s=
x-obs-traffic-limit:819200