Tencent Cloud Database MySQL High Availability Practice

Topic: Tencent Cloud Database MySQL High Availability Practice

Outline:

1. Some suggestions for newcomers who have just entered the database industry
2. At present, the availability of Tencent Cloud RDS has reached 99.9999%, what needs to be done to achieve such high stability
3. Tencent Cloud RDS is very cost-effective, may I include them all? Which aspects
4. The benefits of TXSQL
5. What content needs to be monitored by users for the high availability of MySQL under Tencent Cloud

I heard that 3306π is going to do something

Yes, 3306π Shenzhen station is about to be done soon

Ah, is it? What day, where and how to register?

On December 19th, in the coastal city of Nanshan District , Shenzhen , you can register by clicking the original link at the end of the article or scanning the QR code. Let's brag together.

Guests introduce themselves

Yang Jie   Architect  CDB/CynosDB database management and control platform architect, TXSQL kernel source code contributor, Tencent internal open source MySQL lock-free backup tool author

01

Many small partners enter the database industry, and they will enter Tencent as their goal. As a past person, can Mr. Yang give you some suggestions?

In my own experience, entering the database industry is also a chance. It’s the 8th year in the Tencent database team. In recent years, there has been a lot of recruitment work, so it’s a bit of experience. For graduates, my focus is on basic technical skills, logical thinking and technical enthusiasm. Basic ability includes programming language foundation, data structure and algorithm. This aspect is hard power, indispensable but relatively easy to master. It is recommended to brush more questions.

Logical thinking ability, that is, the ability to analyze problems, have a more comprehensive understanding of what is done, and think about projects/technologies.

Technical enthusiasm is easier to understand, so I won’t repeat it.

For existing students, in addition to possessing the qualities required by graduates, project experience is equally important. Need to have a deeper understanding of the project/technology, and have certain requirements for the industry vision, to be a qualified engineer instead of a code farmer.

02

May I ask Mr. Yang, the current availability of Tencent Cloud RDS has reached 99.9999%. What needs to be done to achieve such high stability?

6 9,1 year unavailable time is 30 seconds. Seven 9, one year unavailable time is 10 seconds. Every increase of 9 is very difficult.

I always believe that good gunners are fed by bullets, and the same is true for good databases. After the scale gradually increases, even a case of 1‰ will affect dozens of MySQL instances, and many hidden bugs that have not been discovered by the government will be discovered.

How to improve the stability, in fact, only needs three steps: maintain the awe of the existing network, find the problem, solve the problem, and repeat the above steps.

At present, the MySQL team of Tencent Cloud Database has a complete monitoring system. We have solved 97.71% of the known extreme scenarios. We believe that there will be 7 9s in the near future.

03

Tencent Cloud RDS is very cost-effective. What aspects are included?           

Cost-effectiveness, as the name implies, means that per unit price can be purchased higher than the industry's performance.

In terms of performance, the TXSQL kernel has made many optimizations, such as hot row update, lock splitting, operator push-down, and accelerated recovery in e-commerce scenarios. Under the same hardware conditions, the performance is improved by more than 50% compared with the official.

In terms of price, it is not only a product pricing strategy issue, but also the optimization of the platform sales algorithm. Only by reducing the waste of resources can there be more space and price advantages. At present, we are also trying AI prediction methods to further reduce the waste of resources.

04

Tencent Cloud MySQL uses TXSQL as the kernel. Can Mr. Yang simply share the benefits of TXSQL?

The full name of TXSQL is Tencent MySQL, which is a customized MySQL branch maintained within Tencent in response to tens of thousands of users on the cloud.

Our advantage is hundreds of thousands of instances on the cloud. In order to adapt to the requirements of different businesses on the database, we have developed many enterprise-level features (data auditing, TDE encryption, strong data consistency, recycle bin...), which is better than the official performance An increase of more than 50%. In the past year or so, 20+Patch has been submitted to MySQL official and MariaDB, which has been recognized by the community.

05

Can you please share with Mr. Yang that the monitoring of MySQL high availability under Tencent Cloud is very complete, and what additional content needs to be monitored by users?    

Users pay attention to the indicators on the business side, and the business code should be reconnected. It is recommended to use DBBrain for database diagnosis. In terms of monitoring, for example, configure the monitoring of thread_running, CPU, Memory, slow_queries and other resources to avoid high load or resource exhaustion.

Scan code to sign up

You can also register by clicking the " Read the original " link at the end of the article

participate

Learn new skills

Win Luo Xiaobo's new book "MySQL Replication Technology and Production Practice" and the Aikesheng exquisite cup

rule of activity

In "Young people do not speak martial arts? On December 19th, come to 3306π Shenzhen Station to learn a little bit of real skills" leave a message below

Write down your suggestions for this event

Or a question you want to ask the guest

After a valid message is selected, the number of likes exceeds 30

Take the top 10 according to the number of likes

give presents

Choose one of the two

About the "3306π" community

Focusing on the core technology of MySQL, bring the most important data solutions in the Internet industry to traditional industries; include other open source technologies RadonDB, ClickHouse, Redis, MongoDB, Hbase, Hadoop, ElasticSearch, Storm, Spark, etc.; share dry knowledge, even if It’s a sponsor, and asks for it, refuses to release

Guess you like

Origin blog.csdn.net/n88Lpo/article/details/111055372