WarehousePG Ports and Protocols v6.27.4

Lists network ports and protocols used within the WarehousePG cluster.

WarehousePG clients connect with TCP to the WarehousePG coordinator instance at the client connection port, 5432 by default. The listen port can be reconfigured in the postgresql.conf configuration file. Client connections use the PostgreSQL libpq API. The psql command-line interface, several WarehousePG utilities, and language-specific programming APIs all either use the libpq library directly or implement the libpq protocol internally.

Each segment instance also has a client connection port, used solely by the master instance to coordinate database operations with the segments. The gpstate -p command, run on the WarehousePG coordinator, lists the port assignments for the WarehousePG coordinator and the primary segments and mirrors.

Additional WarehousePG network connections are created for features such as standby replication, segment mirroring, statistics collection, and data exchange between segments. Some persistent connections are established when the database starts up and other transient connections are created during operations such as query execution. Transient connections for query execution processes, data movement, and statistics collection use available ports in the range 1025 to 65535 with both TCP and UDP protocols.

Note To avoid port conflicts between WarehousePG and other applications when initializing WarehousePG, do not specify WarehousePG ports in the range specified by the operating system parameter net.ipv4.ip_local_port_range. For example, if net.ipv4.ip_local_port_range = 10000 65535, you could set the WarehousePG base port numbers to values outside of that range:

PORT_BASE = 6000
MIRROR_PORT_BASE = 7000

Some add-on products and services that work with WarehousePG have additional networking requirements. The following table lists ports and protocols used within the WarehousePG cluster, and includes services and applications that integrate with WarehousePG.

ServiceProtocol/PortDescription
Coordinator SQL client connectionTCP 5432, libpqSQL client connection port on the WarehousePG coordinator host. Supports clients using the PostgreSQL libpq API. Configurable.
Segment SQL client connectionvaries, libpqThe SQL client connection port for a segment instance. Each primary and mirror segment on a host must have a unique port. Ports are assigned when the WarehousePG cluster is initialized or expanded. The gp_segment_configuration system catalog records port numbers for each primary (p) or mirror (m) segment in the port column. Run gpstate -p to view the ports in use.
Segment mirroring portvaries, libpqThe port where a segment receives mirrored blocks from its primary. The port is assigned when the mirror is set up. The gp_segment_configuration system catalog records port numbers for each primary (p) or mirror (m) segment in the port column. Run gpstate -p to view the ports in use.
WarehousePG InterconnectUDP 1025-65535, dynamically allocatedThe Interconnect transports database tuples between WarehousePG segments during query execution.
standby coordinator client listenerTCP 5432, libpqSQL client connection port on the standby coordinator host. Usually the same as the coordinator client connection port. Configure with the gpinitstandby utility -P option.
standby coordinator replicatorTCP 1025-65535, gpsyncmasterThe gpsyncmaster process on the coordinator host establishes a connection to the secondary coordinator host to replicate the coordinator's log to the standby coordinator.
WarehousePG file load and transfer utilities: gpfdist, gpload.TCP 8080, HTTP
TCP 9000, HTTPS
The gpfdist file serving utility can run on WarehousePG hosts or external hosts. Specify the connection port with the -p option when starting the server.

The gpload utility runs one or more instances of gpfdist with ports or port ranges specified in a configuration file.
Gpperfmon agentsTCP 8888Connection port for gpperfmon agents (gpmmon and gpsmon) executing on WarehousePG hosts. Configure by setting the gpperfmon_port configuration variable in postgresql.conf on coordinator and segment hosts.
Backup completion notificationTCP 25, TCP 587, SMTPThe gpbackup backup utility can optionally send email to a list of email addresses at completion of a backup. The SMTP service must be enabled on the WarehousePG coordinator host.
WarehousePG secure shell (SSH): gpssh, gpscp, gpssh-exkeysTCP 22, SSHMany WarehousePG utilities use scp and ssh to transfer files between hosts and manage the WarehousePG cluster within the cluster.
WarehousePG Platform Extension Framework (PXF)TCP 5888The PXF Java service runs on port number 5888 on each WarehousePG segment host.
Dell EMC PowerProtect (Data Domain) and DD BoostTCP/UDP 111, NFS portmapperUsed to assign a random port for the mountd service used by NFS and DD Boost. The mountd service port can be statically assigned on the Data Domain server.
Dell EMC PowerProtect (Data Domain) and DD BoostTCP 2052Main port used by NFS mountd. This port can be set on the Data Domain system using the nfs set mountd-port command .
Dell EMC PowerProtect (Data Domain) and DD BoostTCP 2049, NFSMain port used by NFS. This port can be configured using the nfs set server-port command on the Data Domain server.
Dell EMC PowerProtect (Data Domain) and DD BoostTCP 2051, replicationUsed when replication is configured on the Data Domain system. This port can be configured using the replication modify command on the Data Domain server.
Pgbouncer connection poolerTCP, libpqThe pgbouncer connection pooler runs between libpq clients and WarehousePG (or PostgreSQL) databases. It can be run on the WarehousePG coordinator host, but running it on a host outside of the WarehousePG cluster is recommended. When it runs on a separate host, pgbouncer can act as a warm standby mechanism for the WarehousePG coordinator host, switching to the WarehousePG standby host without requiring clients to reconfigure. Set the client connection port and the WarehousePG coordinator host address and port in the pgbouncer.ini configuration file.

Parent topic: WarehousePG Security Configuration Guide