Installing or upgrading GBase 8a, the China-domestically developed MPP analytical database from GBASE, usually finishes in under 10 minutes on production servers — but takes 15–20 minutes or more on a laptop VM. After ruling out hardware differences, the cause turned out to be sshd configuration making each remote ssh connection slow. A gbase install issues many of those connections, so the delay compounds.
Investigation
The install and upgrade log gcinstall.log showed the check phase and file-transfer phase completing almost instantly on real servers, but taking several seconds — sometimes over ten — on the VM.
A manual ssh to another node showed a clear wait, so ssh -v was used to find where it stalled. The key part of the output:
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000)
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000)
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/gbase/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/gbase/.ssh/id_dsa
debug1: Trying private key: /home/gbase/.ssh/id_ecdsa
debug1: Trying private key: /home/gbase/.ssh/id_ed25519
debug1: Next authentication method: password
gbase@2001::103's password:
Root Cause
The Unspecified GSS failure line was the culprit, traced to two sshd settings:
- UseDNS enabled
- GSSAPIAuthentication enabled
Fix
If you can edit the sshd configuration, disable both parameters. If you cannot or prefer not to, pass this option to ssh, scp, and similar commands:
-o GSSAPIAuthentication=no
Result
With that option disabled, the upgrade dropped from 27 minutes to 6 minutes.
Going forward, the gap was never about CPU or memory — it was an authentication wait on every single remote connection, multiplied across the many ssh calls an install or upgrade makes. Checking sshd before benchmarking the database itself can save a lot of time on gbase test environments.
Top comments (0)