Mysql database performance test and bottleneck analysis

1. Database Operation Mechanism

Database -- the essence is a software system, the function of this system is mainly for data management【additional deletion】

2. Database monitoring system

The monitoring of the database includes the monitoring of the linux server (refer to the previous application linux server monitoring article), and the independent indicator monitoring of Mysql. Here mainly introduces the Mysql indicator monitoring method

1. Deploy and run the script service for collecting running information of the database

1). First download mysqld_exporter, unzip the file: tar -xvf mysqld_exporter-0.14.0.linux-amd64.tar.gz

2). After decompression, switch to the directory where the mysqld_exporter file is located, configure the database information to be monitored, and execute the command: export DATA_SOURCE_NAME='database user name: password@(database ip:3306)/'

3). Run the mysqld_exporter service

Run in the foreground: ./mysqld_exporter

Background start: nohup ./mysqld_exporter > mysqld_exporter.log 2>1 &

The default port after startup is 9104

Browser access to see the following content, that is, the service is started successfully

Guess you like

Origin blog.csdn.net/qq_38571773/article/details/128462181