DEV Community

Michael
Michael

Posted on

Why GBase 8a Loads Get Slower: A Field Checklist

Loading in the China-domestically developed GBase 8a MPP database from GBASE depends on the data source, the network and the resources of every node, so performance can degrade over time. This checklist collects the causes seen and resolved in real projects, split into gradual and sudden slowdowns. It also applies to a cluster that was slow from day one, though that case is usually less urgent.

Symptoms

How the slowdown develops

A slowdown means the speed once met requirements and something changed. Data then piles up, query freshness drops, and on site it starts as an emergency.

How bad it is

  • A 10-50% drop is generally acceptable and most likely tied to system load. It tends to build up slowly — after a year of use things feel a little slower, but not dramatically.
  • A drop of several times to tens of times almost always means the environment changed substantially, and it is usually sudden: everything was fine yesterday, today there is a large backlog.

Gradual slowdown

Disk filling up

Applies to both spinning disks and SSDs.

On mechanical disks, the outer tracks are 2x the speed of the inner ones (ZDR), so the fuller the disk, the worse the performance. SSDs have no inner/outer difference, but they cannot overwrite in place: writes require erasing whole blocks first. When free space runs low, the drive keeps writing, relocating and clearing blocks, and the number of blocks needing erasure grows with age.

Keep disks below roughly 60-70% utilisation, then plan an expansion or shorten the retention period for historical data.

Data volume growing

Business expands, the data to process grows slowly, and this usually goes together with an expansion.

Hardware ageing

Equipment in service for 3-5 years or more — network cables, switches, the servers themselves.

Sudden slowdown

The load flow is roughly:

  • The cluster connects to the data source, gets the file count and sizes, and splits the work across several distribution nodes.
  • Each distribution node connects to the source and reads its own files.
  • Each distribution node sends the data to the data nodes across the cluster according to the rules.

Causes fall into two groups: OS/environment and data.

OS and environment

Changes at the operating-system level:

  • Disk problems.
  • High load, busy at 100% for long stretches — often another program deployed or running on the host, including OS-native ones such as filesystem check tools like AIDE. A recent OS upgrade or config change is a common trigger. Use iostat to check for sustained 100% disk utilisation.
  • Poor disk performance: iostat shows very high await, usually alongside constant 100% utilisation.
  • Disk faults: /var/log/messages shows read timeouts or Input/Output Error and other filesystem errors.
  • CPU throttling: /proc/cpuinfo|grep MHz shows the clock below full speed or fluctuating — often a power-saving mode or poor cooling.
  • Network problems: wget/curl pulls files far more slowly than on other machines, e.g. only a few hundred KB or a few MB where others reach tens or hundreds of MB.
  • NIC speed drop: ethtool shows a drop from 10 GbE to 100 Mbps, usually a bad cable or a loose connection after physical contact, rarely a switch issue.
  • Packet loss: visible with ifconfig, same causes as above.
  • High latency: ping shows it; carrier-grade links are generally expected to stay under 10 ms.

Data side

Source file sizes changed.

  • A few oversized files: some files are 8x the size of others and are unsplittable compressed archives, so the distribution nodes handling them take longer and become the bottleneck for the whole load.
  • Many tiny files: they consume more I/O, both network and disk, and are very unfriendly to bulk loading. This usually follows a collector parameter change or a newly added source where the configuration was forgotten.

Fewer distribution nodes.

The count is set by the cluster_loader_max_data_processors parameter. On one site it was never written into the config file, so after some management nodes restarted, loading slowed down.

A practical investigation order

  • Establish the pattern: is it persistent or intermittent?
  • Measure the degree: does it correlate with a time window, such as a background job at dawn? Is it a slight dip or a many-fold one?
  • Watch the load in progress: check whether the last node to finish always comes from the same distribution node or the same data source.
  • Inspect node resources, source included: focus on the nodes suspected above, or check all of them if there is no lead. Use iostat for disk and CPU busy/wait and errors, top for SWAP usage, and check for CPU throttling and NIC speed drops.
  • Test inter-node network speed: wget/curl between nodes, especially between the database and the data source; scp a file that is not too small, say over 200 MB.
  • Check the engine state: show engine express status on gnode, and send it to GBase 8a support.
  • Trace the load log: enable logging, run one load manually and reproduce the problem, then look at the per-stage timings.

Going forward, a sudden slowdown almost always traces back to an environment change, while a gradual one points to long service life and, most often, insufficient free disk space. Keep the baseline numbers in the runbook so the next incident starts from a measured comparison rather than a guess: that is the fastest way to tell a gbase-side regression from a network or disk fault in a gbase cluster, and to keep the database loading at its expected rate.

Top comments (0)