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

Implementing CRS Connection Count Increase with Custom Actions

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-24 15:23:01

Background

CFG allows users to customize fault actions for chaos engineering experiments. In fault scenarios where stress test is executed on MySQL or CRS, a CVM instance within the same VPC as MySQL or CRS can be used to execute stress test scripts.

Practical Examples

The following demonstrates how to use custom actions to implement CRS connection count increase.

Step 1: Experiment preparation

A CVM instance used for fault injection with a Redis client installed, used to connect to the CRS instance (Ensure the CVM can be connected to the CRS instance.)
A CRS instance that is in the same VPC with the CVM
Fault action script file

Step 2: Create custom actions

1. Log in to Tencent Cloud Smart Advisor > Chaotic Fault Generator, enter the Action Library Management page, and select Create Custom Action.
2. Configure the custom actions. Configure command content and command parameters. Click Save after you complete the configuration.
The example command content includes parameters such as request_num, host, port, password, and client_count, which can be passed during execution.
redis-benchmark -q -n {{request_num}} -h {{host}} -p {{port}} -a '{{password}}' -c {{client_count}}

Step 3: Experiment orchestration

1. Enter the Experiment Management page, click Create a New Experiment, fill in the experiment details, and select the objective CVM instance for the experiment.
2. Click Add Experiment Action in the lower-left corner, select Shell Script, select the custom action you created, and click Next.
3. Modify the default parameters of the action according to the stress test requirements.
4. After configuring action parameters, click Next. After filling in the experiment global configuration, click Submit.

Step 4: Execute the experiment

1. Execute the experiment and observe the execution results.
2. During execution, you can monitor data on the CRS console.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백