Enabling the Data Collection Agents
Enabling the Data Collection Agents
This section describes how to create the Command Center database and enable the Command Center data collection agents. When the data collection agents are enabled, their processes are started and stopped along with the Greenplum Database server processes (using gpstart and gpstop).
Greenplum provides a gpperfmon_install utility that performs the following tasks:
- Creates the Command Center database (gpperfmon).
- Creates the Command Center superuser role (gpmon).
- Configures Greenplum Database server to accept connections from the Command Center superuser role (edits the pg_hba.conf and .pgpass files).
- Sets the Command Center server configuration parameters in the Greenplum Database server postgresql.conf files.
To enable the Collection Agents
The data collection agents are now running, and your Greenplum system now has a gpperfmon database installed. This is the database where Command Center data is stored. You can connect to it as follows:
$ psql gpperfmon
To configure a standby master host (if enabled)
- Copy the $MASTER_DATA_DIRECTORY/pg_hba.conf file from your primary master host to your standby master host. This ensures that the required connection options are also set on the standby master.
- Copy your ~/.pgpass file from your primary master host to your standby master host. This file usually resides in the gpadmin user’s home directory. Note that the permissions on .pgpass must be set to 600 (for example: chmod 0600 ~/.pgpass).