tencent cloud

Tencent Cloud Smart Advisor

Release Notes
Product Introduction
Overview
Features
Product Strengths
Scenarios
Customer Cases
Purchase Guide
Getting Started
Using TSA to Perform a Cloud Risk Assessment
Using TSA to Execute a Chaos Experiment on CFG
Operation Guide
Operation Guide to TSA-Cloud Architecture
Operation Guide to TSA-Cloud Risk Assessment
Operation Guide to TSA-Chaotic Fault Generator
Operation Guide to TSA-Digital Assets
Permission Management
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Task APIs
Cloud Architecture Console APIs
Data Types
Error Codes
FAQs
FAQs: TSA
FAQs: TSA-Cloud Risk Assessment
FAQs: TSA-Cloud Architecture
FAQs: TSA-Chaotic Fault Generator
Related Protocol
Tencent Cloud Smart Advisor Service Level Agreement
PRIVACY POLICY MODULE CHAOTIC FAULT GENERATOR
DATA PRIVACY AND SECURITY AGREEMENT MODULE CHAOTIC FAULT GENERATOR
Contact Us

Setting Maximum Number of Connections in MySQL

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-03-24 15:23:00

Background

MySQL is a widely used database management system. The maximum number of connections in the database directly impacts system performance and stability. If the maximum number of connections in MySQL is improperly set, the database may be unable to handle a large number of concurrent requests, therefore, the normal operation of the business is affected.
To improve database service reliability and stability, a fault experiment on the maximum number of connection is required. Through experiments, the system can be verified to see if it can operate normally under improper maximum connection settings, allowing for quick and effective fault resolution.
Note: For MySQL instance creation and connection, see the following documents.

Experiment Implementation

Step 1: Experiment Preparation

A MySQL instance available for experiment
A CVM instance (used only for connecting database example. You can use other means of connection.)

Step 2: Experiment Orchestration

1. Check parameter configuration max_connections for number of connections in MySQL instance first, and pay attention to the initial value.
2. Log in to the Tencent Cloud Smart Advisor > Chaotic Fault Generator, go to the Experiment Management page, and click Create a New Experiment.
3. Click Skip and create a blank experiment. Fill in the experiment information and add a ready MySQL instance.
4. Click Add Now, and select Network Resources.
5. Select Set maximum connections, and then click Next.
6. Configure fault action parameters, and click Confirm.
7. After action parameter configuration, click Next. Configure Guardrail Policy and Monitoring Metrics considering actual situations, and click Submit to complete experiment creation.

Step 3: Experiment Execution

1. Go to experiment details, and click Go to the action group for execution.
2. Click Execute to start an experiment.
3. Click the Action Card, and check details of action execution.
4. Check instance execution logs and confirm a successful execution.
5. Check the effects after the execution of the failure action, check max_connections parameter of MySQL instance, and you will find that a change has taken place.
6. Execute a recovery action, and check the execution logs of the recovery action.
7. Check the result after recovery. Check max_connections parameter of MySQL instance, and you will find that the parameter has been reset to the initial value.


Ajuda e Suporte

Esta página foi útil?

comentários