Greenplum database monitoring software installation procedure Detailed gpcc

Greenplum database is the official gpcc own database monitoring software.

This article will explain in detail the process gpcc installation, the installation of a relatively new version 4.5.1

  Installation configuration GPCC Monitoring Software

1. Open the data collection agent (Data Collection Agents, DCA)

 1.1 gpperfmon_install tools to complete the task

    gpperfmon_install tools to complete tasks include:

 1. Create a command center (CC) database, gpperfmon

 2. Create a CC Super User, gpmon

 3. Configure CC to connect GPDB by editing pg_hba.conf file and .pgpass

 4. Set the parameter CC in GPDB by editing postgresql.conf

 

2. Open the data collection agent (Data Collection Agents, DCA)

   Open Data collection agency steps:

1) Log gpadmin:

     are - gpadmin

2) In the master host environment variable source gp

  source /usr/local/greenplum-db/greenplum_path.sh

3) Run gpperfmon_install tool, create a database gpperfmon

   $ gpperfmon_install --enable --password gpcc1234 --port 5432

    This step is to create a super user gpmon, -password login password is set, this setting is gpcc1234

4) Restart GPDB, the effect:

  Shut down the database:

   $ gpstop -M fast

 Restart the database:

   gpstart -a

5) Check the master host DCA process: $ ps -ef | grep gpmmon

6) Verify DCA writable GPCC database, if all segment of DCA normal, you can see by following command,

     $ psql gpperfmon -c 'SELECT * FROM system_now;'

     In addition, if there is standby, you need to configure:

  1. Copy $ MASTER_DATA_DIRECTORY / pg_hba.conf to respective standby positions
  2. Copy ~ / .pgpass position corresponding to standby; chmod 0600 ~ / .pgpass

 

3. Install GPCC monitoring software (Greenplum Command Center Console)

1) Download, unzip software

unzip greenplum-cc-web-4.5.1-LINUX-x86_64.zip  /data/backup/

2) Configuration gpcc.conf

Gpcc initialization file when you need to configure gpcc.conf

 The gpcc.conf gpcc software files into a directory, namely / data / backup /

The contents of the configuration file is as follows:

path= /data/gpcc

master_port=5432

web_port = 28080

rpc_port=8899

enable_ssl=false

enable_kerberos=false

Upload files to gpcc bin directory and modify the file owner:

chown -R gpadmin:gpadmin  gpcc.conf

 

3) create / data / gpcc directory gp each cluster node, and belong to the group is gpadmin: gpadmin

        mkdir -p /data/gpcc;

      chown -R gpadmin:gpadmin /data/gpcc;

 

4) Log gpadmin, installation

 

cd /data/backup/greenplum-cc-web-4.5.1-LINUX-x86_64; 

$ ./gpccinstall-4.5.1 -c gpcc.conf

5) Set gpadmin environment variables

$ source /usr/local/greenplum-db/greenplum_path.sh

$ source /data/gpcc/greenplum-cc-web-4.5.1/gpcc_path.sh

6) Set gpadmin environment variable, ~ / .bashrc or ~ / .bash_profile

GPPERFMONHOME=/data/gpcc/greenplum-cc-web-4.5.1

source $GPPERFMONHOME/gpcc_path.sh

7) Start CC instance

gpcc  start

8) Log GP CCC

https://master_host_name:28080/

  My masterIP address is 192.168.178.130, and therefore

gpcc Address:

http://192.168.178.130:28080

Login: gpmon

Password: gpcc1234

 

Log can be used as:

 

Guess you like

Origin www.cnblogs.com/nanshanjushi/p/11324648.html