Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring Auto Flow Control

Updated on 2025-01-02 GMT+08:00

Scenarios

Auto Flow Control allows you to set criteria, such as the vCPU threshold and maximum number of active connections. When the criteria are met, the system automatically performs flow control on sessions to ensure the availability of core services in scenarios such as high burst traffic and abnormal reads/writes.

Prerequisites

If you use auto flow control for the first time, subscribe to Intelligent O&M first.

  1. In the Auto Flow Control area, click Subscribe. In the displayed dialog box, you can learn about the value-added functions and billing rules.
  2. (Optional) If you enable Collect Slow Query Logs and Collect All SQL Statements, slow query logs and all SQL statements are collected and analyzed from multiple angles. For details, see Viewing Slow Query Logs of a DB Instance and Viewing Top SQL Statements of a DB Instance.
Figure 1 Subscribing to Intelligent O&M

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, click the DB instance name.
  5. In the navigation pane, choose DBA Assistant > Historical Diagnosis.
  6. Click SQL Explorer and then Auto Flow Control.
  7. Click Auto Flow Control.
  8. Toggle on and configure required parameters. For details about the parameters, see Table 1.

    Figure 2 Example

    Example for setting Auto Flow Control parameters

    Set Time Window to 15:00-18:00, Max. Duration to Last 5 minutes, vCPU usage ≥ to 90%, Active sessions ≥ to 20, and and Duration (min) to 5. When all the criteria are met, Auto Flow Control is triggered. If your vCPU usage or number of active sessions falls below the threshold during the time window, flow control ends.

    Table 1 Parameter description

    Parameter

    Description

    Database

    The name of the database for which auto flow control needs to be enabled. Ensure that the database you select is consistent with the one specified in your SQL statements, or the auto flow control policy will fail.

    If the database name is not specified, auto flow control is applied to all databases by default.

    Username

    The name of the user that auto flow control is applied.

    Time Window

    The time when flow control is applied. Auto flow control can be triggered only once within the time window.

    Max. Duration

    Maximum length of time that SQL statements matching the auto flow control policy can be throttled within the time window.

    vCPU usage

    vCPU usage threshold for the instance (≥ 70%). You also need to specify the relationship between the vCPU usage and active sessions. Their relationship can be and or or.

    Active sessions

    Threshold for active sessions. Value range: 1 to 5000

    Duration (min)

    How long vCPU usage and active sessions exceed the specified values. The duration can range from 2 minutes to 60 minutes.

    For example, if you set vCPU usage ≥ to 90%, Active sessions ≥ to 1000, and Duration (min) to 30, auto flow control will be triggered only when the vCPU usage and active sessions exceed 90% and 1,000 for 30 minutes.

    Max. Active Connections

    Maximum number of active connections allowed. The value can range from 1 to 5,000. Auto flow control stops when the number of active connections drops to this limit.

  9. Click OK.
  10. You will see a record generated on the page every time Auto Flow Control is triggered. You can see historical details, too.

Follow-up Operations

After auto flow control is enabled, you can determine whether to kill sessions based on service requirements. To learn how to kill sessions, see Managing Real-Time Sessions.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback