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

Configurable parameters for the test
Parameter Description

Test Period

How often should the test be executed.

Host

The IP address of the MySQL server.

Port

The port at which the specified host listens.

Database

Specify the name of a database on the target MySQL database server being monitored

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 topic.

Confirm Password

Confirm the password by retyping it here.

Table Rows

Specify the number of records beyond which this test will consider a table as a large table.

Table Size (MB)

Specify the size of the table beyond which this test will consider a table as a large table.

DD Row Count

By default, the detailed diagnosis of this test, if enabled, will report only the top-10 tables. This is why, the DD Row Count parameter is set to 10 by default. If you want to include more or less tables in detailed diagnosis, then change the value of this parameter accordingly.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
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.