A China-domestically developed GBase 8a MPP database often uses NIC bonding for high availability, with links spread across switches to remove a single point of failure. This case study traces a slowdown — loads, DML, everything — back to that bond.
Symptom
The customer reported extremely slow loads, some running past 2 hours without finishing. Normal loads finish within 1 minute, most in a few seconds.
Investigation
Ruling things out layer by layer:
-
iostaton every node: all machines almost idle, CPU below 30%, IO below 10% — no single-host bottleneck. -
ethtool: no link degradation, all 10 GbE. -
/var/log/messages: no errors. - Restart the database service: customer restarted the whole cluster; no change.
-
Network from source to nodes:
scpof a 1 GB file from the load source to a cluster node ran at about 50 MB/s — no obvious problem. -
Trace log: a trivial
insert selectof 17 rows took over 1 minute, and the first node was slow on Finish ACK, pointing at that node's network. -
Shut down the first node's service and monitor from the second server: slight improvement, but
gcadminkept reporting cluster LOCK, many SQL statements rolled back, and observation became impossible. -
gcwareservice log: the second server repeatedly dropped out of the management nodes, forcing service rebuilds, while other nodes stayed healthy. Historically the second node fbd had far more fault records than the first node fdc. The offline cause was missing heartbeats in both directions — fbd received none from the others, and the others received none from fbd. Conclusion: fbd's network fault was worse than fdc's, with a blocking path between it and every other node.
The on-site bond layout
Site IPs fall into two ranges, fbX and fcX, hinting at cross-switch traffic. The customer confirmed: 2 nodes initially, later expanded by 4 nodes on a new switch; every node had bonded NICs attached to 2 separate switches for redundancy. The system had been healthy, so the question became whether a NIC or switch failover had occurred.
Changing the bond
Force the second node's bond onto NIC 1 and restart the service: the system recovered instantly and stayed stable.
BONDING OPTS="mode=1 miimon=100 primary=eno1"
That points to a blocked or faulty switch port or cable on the second node.
Bonding exists to remove a network single point of failure, but here the standby switch of the original 2 nodes had a communication fault with the 4 newly added nodes — likely UDP broadcast not getting through, or heavy filtering. The switch happens at the OS layer, invisible to the application: traffic on the first switch is fine, and a failover to the second brings the whole database to a crawl. Looking ahead, any gbase cluster with bonded NICs should be tested for performance after failover, not just for link state — a bond that reports "up" can still be the reason a gbase cluster spends two hours on a one-minute load.
Top comments (0)