Rate This Document
Findability
Accuracy
Completeness
Readability

Tuning Process

Identify problems, find performance bottlenecks, and determine a tuning method based on the bottleneck level.

For details about how to tune MariaDB, refer to the process of tuning MySQL, as shown in Figure 1:

Figure 1 Tuning process

The tuning analysis process is as follows:

  1. In most cases, even before the entire pressure test traffic enters the server, the pressure test result may fail to meet the expectation due to network factors, such as the bandwidth, maximum number of connections, and limit on the number of new connections.
  2. Check whether the key metrics meet requirements. If not, locate the possible problem causes. The problems may exist on a server (in most cases) or a client (in few cases).
  3. If the problem cause is on a server, check the hardware metrics such as the CPU, memory, drive I/O, and network I/O metrics. If any abnormal hardware metric is detected, further analysis is required.
  4. If the hardware metrics are normal, check the database metrics, such as the wait events and memory hit ratio.
  5. If hardware and database metrics are normal, check the algorithms, buffer, cache, synchronization, and asynchronization. If any abnormal metric is detected, further analysis is required.

    Bottleneck

    Description

    Hardware/Specifications

    Check the CPU, memory, and drive I/O metrics for hardware bottlenecks and network bottlenecks (network bottlenecks can be ignored in a LAN).

    OS

    Check for problems related to the operating system, such as Windows, UNIX, or Linux. For example, insufficient physical memory or improper virtual memory settings may cause a sharp decrease of the virtual memory swap efficiency and an increase of response time.

    Database

    Check the database configurations. For example, improper parameter settings may cause a slow database processing speed.