GDOM (GBase Database Operation Manager) is GBASE's operations and management platform for a gbase cluster — specifically the GBase 8a MPP database. Starting with GDOM 3.7.0, it supports PostgreSQL as a resource database alongside the existing MySQL 8 option. This post walks through the automated PostgreSQL deployment.
The Configuration File
demo.options in the unpacked installer defaults to a MySQL resource database. Switching to PostgreSQL means changing these items — the installer then installs PostgreSQL, creates the user, and initializes it automatically:
gdomDb=10.0.2.151
gdomDbPort=5432
gdomDbUser=gdom
gdomDbPwd=111111
gdomDbDriver=org.postgresql.Driver
gdomDbUrl=
Security note: once installation succeeds, the password in demo.options is no longer used. Delete it so scanners cannot pick it up — the configuration files used by the running program already store encrypted passwords. It is not removed automatically because an installation may be repeated (a wrong first choice, or multiple deployments), and the file must stay editable for the next run.
PostgreSQL lands under GDOM_INSTALL_DIR/install/postgresql/postgresql-17.6-redhat8-x86_64/; the exact path varies by version.
Full demo.options for a single-node install on 10.0.2.151:
# Install directory; mutual-trust setup will try to create it and change ownership
gdomRoot=/opt/gdom
# External service IP
gdomService=10.0.2.151
# External service port, served by nginx
gdomServicePort=8080
# OS user to install under; mutual-trust setup will try to create it
user=gdom
# Resource DB IP, local in this example. Leave empty for an external source.
# This build does not support pg primary/standby yet, so only one IP is allowed.
gdomDb=10.0.2.151
gdomDbPort=5432
gdomDbUser=gdom
gdomDbPwd=111111
# pg driver: auto-deploy postgresql as the resource database
gdomDbDriver=org.postgresql.Driver
# Alternative to gdomDb: if set, gdomDb is ignored and this is used as the data source
gdomDbUrl=
# This build does not support pg HA yet; leave empty
gdomDbHa=
gdomDbHaPort=3307
gdomDbHaMonitorPort=8811
gdomDbHaMonitorAdmin=admin
gdomDbHaMonitorPwd=admin
gdomGBaseDb=10.0.2.151
gdomGBaseDbPort=5268
gdomGBaseDbUser=gbase
gdomGBaseDbPwd=gbase
gdomGBaseDbUrl=
gdomNginx=10.0.2.151
gdomNginxPort=8810
gdomNginxUrl=
gdomRedis=10.0.2.151
gdomRedisPort=7481
gdomRedisDb=0
gdomRedisUrl=
gdomMq=10.0.2.151
gdomMqPort=9876
gdomDashBoardPort=9898
gdomMqUrl=
Installation
Installation must run as OS root.
1. Create mutual trust
Run ./gdomMutualTrust.sh -a; it prompts for the OS root password and the gdom password. It creates the gdom user and, if the install directory does not exist, creates it and sets ownership to gdom.
[root@vm151 GDOM-v3.7.0-build3-redhat8-x86_64]# ./gdomMutualTrust.sh -a
Enter gdom user password:
Enter root user password:
10.0.2.151 root password verified
10.0.2.151 gdom user created/updated
10.0.2.151 gdom user mutual trust established
10.0.2.151 gdom user mutual trust verified
gdom user mutual trust complete
2. Install the services
Switch from root to the target user gdom and run ./gdomInstall.sh -a:
[root@vm151 GDOM-v3.7.0-build3-redhat8-x86_64]# su gdom
[gdom@vm151 GDOM-v3.7.0-build3-redhat8-x86_64]$ ./gdomInstall.sh -a
Version: GDOM-v3.7.0-build3
10.0.2.151 connection test successful
10.0.2.151 /opt/gdom initialized
10.0.2.151 2026-02-26 10:39:51 time check passed
The port check confirms GDOM Service 8080, GDOM DB 5432, GBase 5268, Nginx 8810, Redis 7481, and RocketMQ 9876 as available, skipping HaProxy because HA is not enabled. Component packages are then distributed — the resource DB side gets postgresql-17.6-redhat8-x86_64.tar.gz (37 MB), the GBase side gets GBase8a-NoLicense-9.5.3.28.11-redhat8-x86_64.tar.gz (72 MB), plus JDK 17.0.16 and the initialization SQL files.
3. Start the services
[gdom@vm151 GDOM-v3.7.0-build3-redhat8-x86_64]$ ./gdomStart.sh -a
Version: GDOM-v3.7.0-build3
10.0.2.151 PostgreSQL starting, please wait ...
10.0.2.151 PostgreSQL connection successful
PostgreSQL service started
10.0.2.151 GBase / Redis / Nginx / RocketMQ / GDOM Service connection successful
GDOM backend service started
Access URL: https://10.0.2.151:8810
HaProxy is skipped again, since no HA strategy is in use.
Connecting to PostgreSQL from a Client
To reach PG directly, change into install/postgresql/postgresql-17.6-redhat8-x86_64 under the install directory and run psql.sh:
[gdom@vm151 postgresql-17.6-redhat8-x86_64]$ ./psql.sh 10.0.2.151 5432 gdom gdom
Password for user gdom:
psql (17.6)
Type "help" for help.
gdom=#
The four arguments are, in order: IP, port, database user, database to connect to.
Going forward, PostgreSQL support gives customers who cannot or prefer not to use MySQL a genuine choice of resource database, with the deployment, user creation, and initialization handled by the installer. The one operational detail worth keeping is the plaintext password left in demo.options: clear it after installation, because the running gbase services no longer need it.
Top comments (0)