DEV Community

Michael
Michael

Posted on

Two IP-Mapping Errors with gcluster_rsynctool in GBase 8a

gcluster_rsynctool synchronizes tables between two GBase 8a clusters, including clusters that use private network addresses on each side. An IP mapping file lets the tool reach both clusters over their public (large-network) IPs. The China-domestically developed GBase 8a MPP database from GBASE relies on that mapping when a gbase cluster sits behind private addresses, and this note collects two errors seen in the field.

Reference

The companion note on private-network / internal-network cluster sync and the gcluster_rsynctool IP mapping configuration.

Can't connect to GBase on 'X.X.X.X:5050' (timed out)

The address in the message is a private (small-network) IP, which means the IP mapping did not take effect.

  • Check whether the mapping parameters are set correctly: --master_mpp_ip_mapping_file for the master cluster and --slave_mpp_ip_mapping_file for the slave cluster.
  • If both are configured, re-check the IP values for typos.

Initialize master gcluster topology failed:Y.Y.Y.Y is not in mapping

The mapping file has no entry for that address. The usual causes are a mistyped IP or a reversed FROM/TO pair.

  • Verify every IP written in the mapping file.
  • Keep the direction straight: FROM is the private IP, TO is the public IP. A swapped pair is the most common mistake.

Going forward, validate the mapping file before the first sync run on a gbase cluster: a single reversed entry makes the job fail at topology initialization, while a missing parameter leaves the tool dialing an address the other side can never answer. Both are cheaper to catch in the file than in a timed-out connection against the database.

Top comments (0)