MySQL Top Tables Test
In an effort to track the growth of individual databases, administrators may want to time and again check how many rows of data each table in a database contains. In the process, they will be able to identify those tables with more than a permissible number of records. Based on this finding, they can then decide whether deletion of a few or more unnecessary records from these ‘large tables’ can keep database growth under check. Similarly, to ensure that a database does not grow uncontrollably, administrators have to periodically check the size of the database tables, isolate the tables with the maximum size, and see if the table size can somehow be reduced. The MySQL Top Tables test helps administrators in this exercise.
This test reports the total number of tables that contain more than a configured number of records and the total number of top tables in a given database in terms of size. The detailed diagnosis of this test will help administrators figure our the exact tables that has outgrown in records and size.
Target of the test : A MySQL server
Agent deploying the test : An internal/remote agent
Outputs of the test : One set of results for the target MySQL database instance being monitored
| Parameter | Description |
|---|---|
|
Test Period |
How often should the test be executed |
|
Host |
Specify Host name of the server for which the test is to be configured in this text box. |
|
Port |
Specify the port to which the specified host listens in this text box. |
|
Database(DB) |
Specify the name of a database on the target MySQL database server being monitored in the Database text box. |
|
Username and Password |
The eG agent has to be configured with the credentials of a user who has server-wide Process and Select privileges on the monitored MySQL server. To know how to create such a user, refer to Pre-requisites for Monitoring the MySQL Server |
|
Confirm Password |
Confirm the Password by retyping it in the Confirm Password text box. |
|
Allow Public Key |
By default, the Allow Public Key flag is set to No. But, if the specified USER is created with caching_sha2_password as the authentication plugin, then the eG agent can connect to the target database cluster using RSA public key. To this effect, you have to set Allow Public Key flag to Yes. |
|
SSL |
By default, the SSL flag is set to No, indicating that the target MySQL database server is not SSL-enabled by default. To enable the test to connect to an SSL-enabled MySQL database server , set the SSL flag to Yes. |
|
Verify CA |
If the eG agent is required to establish an encrypted connection with the target MySQL database server by authenticating the server's identity through verifying the server CA certificate, set Verify CA flag to Yes. By default, this flag is set to No. |
|
Truststore Password |
This parameter is applicable only if the Verify CA parameter is set to Yes. To verify the target server certificate, provide the password of the truststore file which contains the server CA certificate in the Truststore Password text box. By default, this parameter is set to none. |
|
Confirm Password |
Confirm the Password by retyping it in the Confirm Password text box. |
|
Keystore Password |
This parameter is applicable only if the Verify CA parameter is set to Yes. To establish a connection with the target MySQL database server , the eG agent needs to have access to the client certificate. For this provide the password of the keystore file which contains the client certificate in the Keystore Password text box. By default, this parameter is set to none. |
|
Confirm Password |
Confirm the Password by retyping it in the Confirm Password text box. |
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
Tables by record |
Indicates the total number of tables with a record count that exceeds the Table Rows configuration. |
Number |
The detailed diagnosis of this measure lists the name of the tables in terms of maximum number of records, size of each table and the record count. |
|
Tables by size |
Indicates the total number of tables that exceeds the Table Size configuration. |
Number |
The detailed diagnosis of this measure lists the name of the tables in terms of maximum size, size of the each table and the record count. |