QoS Traffic Control Examples
Troubleshooting Traffic Control Issues
Symptoms
- Symptom 1: On the Cloud Eye dashboard, the utilization of QPS, bandwidth, or concurrent requests reaches or exceeds 100%, or a related alarm is triggered.
- Symptom 2: Requests fail and return status code 429.
- Symptom 3: Request latency increases, and the response includes the x-obs-qos-delay-time header.
Possible Causes
- Causes of symptoms 1 and 2:
- Bucket metric threshold reached: The number of concurrent requests of the bucket exceeds the preset threshold.
- Cluster resources exhausted: The number of concurrent requests in the cluster where the bucket resides exceeds the threshold allowed for the account in that cluster.
- Causes of symptoms 1 and 3:
- Bucket metric threshold reached: The bucket's QPS or bandwidth exceeds the preset threshold.
- Cluster resources exhausted: The QPS or bandwidth of the cluster where the bucket resides exceeds the threshold allowed for the account in that cluster.
Troubleshooting
- Check whether cluster resources are exhausted.
Check the utilization metrics for the cluster's QPS, bandwidth, and concurrent requests. For details, see Using Cloud Eye to Monitor Account-Level QoS for a Cluster.
- If any utilization metric checked in 1 reaches 100%, cluster resources are exhausted. Reduce the QPS, bandwidth, or number of concurrent requests of your client workloads. If none reaches 100%, proceed to 3.
- Check whether any bucket metric reaches its threshold.
Check the utilization metrics for the bucket's QPS, bandwidth, and concurrent requests. For details, see Using Cloud Eye to Monitor Bucket Metrics by Bucket.
- If any utilization metric checked in 3 reaches 100%, the bucket metric has reached its threshold. Resolve the issue in either of the following ways:
- Increase the bucket's QoS limits. For details, see Configuring and Viewing Bucket QoS.
- Reduce the QPS, bandwidth, or number of concurrent requests of your client workloads.
QoS Configuration Examples
The following examples are for reference only. Assess your workload carefully before setting final values.
Example 1: Configuring Bucket QoS for the First Time on an Existing Workload
If a workload has been running on Huawei Cloud for some time without QoS configured, and you now want to configure QoS for its buckets, perform the following steps:
- Check the historical monitoring metrics of the bucket.
- Go to the OBS details page on the Cloud Eye console and set the resource dimension to Bucket Name. In the Instances area, click the bucket used by the workload. The monitoring details page is displayed.
- View the values of the metrics listed in Table 1.
Table 1 Historical monitoring metrics Metric ID
Metric Name
Description
Unit
Monitoring Period (Raw Data)
request_count_per_second
Total TPS
The average number of requests per second in a measurement period
Count/s
1 minute
request_count_get_per_second
GET Request TPS
The average number of GET requests per second in a measurement period
Count/s
1 minute
request_count_put_per_second
PUT Request TPS
The average number of PUT requests per second in a measurement period
Count/s
1 minute
request_count_delete_per_second
DELETE Request TPS
The average number of DELETE requests per second in a measurement period
Count/s
1 minute
request_count_post_per_second
POST Request TPS
The average number of POST requests per second in a measurement period
count/s
1 minute
request_count_head_per_second
HEAD Request TPS
The average number of HEAD requests per second in a measurement period
count/s
1 minute
api_request_count_per_second
API Request TPS
The average number of specific API requests per second to all buckets and objects of a tenant during a measurement period. For details about the supported APIs, see Request APIs.
Count/s
1 minute
download_bytes
Total Download Bandwidth
The total size of objects downloaded per second in a measurement period
byte/s
1 minute
download_bytes_extranet
Download Bandwidth (Internet)
The total size of objects downloaded per second over the Internet in a measurement period
byte/s
1 minute
download_bytes_intranet
Download Bandwidth (Intranet)
The total size of objects downloaded per second over an intranet in a measurement period
byte/s
1 minute
upload_bytes
Total Upload Bandwidth
The total size of objects uploaded per second in a measurement period
byte/s
1 minute
upload_bytes_extranet
Upload Bandwidth (Internet)
The total size of objects uploaded over the Internet per second in a measurement period
byte/s
1 minute
upload_bytes_intranet
Upload Bandwidth (Intranet)
The total size of objects uploaded over an intranet per second in a measurement period
byte/s
1 minute
- Take the maximum historical value of each metric in Table 1, increase it by 20%, and use the result to set the bucket QoS.
For example, if the maximum historical total download bandwidth (download_bytes) is 10 GB/s, you can set the bucket's read bandwidth QoS (bucket_total_BpsLimit_Get_max) to 12 GB/s.
Example 2: Configuring Bucket QoS for a Migrated Workload
For a workload that previously ran on another cloud provider and is being migrated to Huawei Cloud, check its resource usage on the original platform and set the QoS values of the related buckets based on that historical data.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot