greenplum-cc-web4.2 監控安裝

安裝Performance Monitor數據收集Agent

安裝前準備:

 修改postgresql.conf配置文件web

    進入你master的文件系統中的gpseg-1文件夾下sql

    $ cd /data/master/gpseg-1

    編輯postgresql.conf,添加如下參數:      數據庫

      gp_enable_gpperfmon=on
     gpperfmon_port=8888
     gp_external_enable_exec=on
     gpperfmon_log_alert_level=warning    

gpadmin用戶執行以下步驟【僅在master節點】。bash

使用gpperfmon_install命令,

Greenplum安裝完成後已經包含該命令。安裝後會創建名爲gpperfmon的數據庫,默認使用gpmon用戶。命令行中系統用戶gpmon的密碼。ssh

[gpadmin@mdw ~]$ gpperfmon_install --enable --password gpmon --port 5432post

重啓GP數據庫

[gpadmin@mdw ~]$ gpstop -rthis

確認監控採集進程是否已經啓動。

[gpadmin@mdw ~]$ ps -ef |grep gpmmonspa

確認Performance Monitor數據庫寫入數據是否正常,檢查是否有記錄寫入。

psql -d gpperfmon -c 'select * from system_now;'命令行

拷貝Master主機拷貝配置文件到Standby Master的相應目錄【本例未設置smdw;則無需操做】

gpscp -h smdw $MASTER_DATA_DIRECTORY/pg_hba.conf =:$MASTER_DATA_DIRECTORY/postgresql

gpscp -h smdw ~/.pgpass =:~/

安裝Performance Monitor控制檯

下載對應的安裝包

查看GreenPlum版本

[gpadmin@mdw ~]$ gpstate -s | awk '/Greenplum Version/{print $8}'|awk 'NR==1'

安裝包下載地址

運行安裝包

安裝包解壓:

[root@mdw gpdb]# unzip greenplum-cc-web-4.2.0-LINUX-x86_64.zip 

運行安裝文件:

[root@mdw gpdb]# ./greenplum-cc-web-4.2.0-LINUX-x86_64/gpccinstall-4.2.0

#一直空格

I HAVE READ AND AGREE TO THE TERMS OF THE ABOVE PIVOTAL GREENPLUM DATABASE
END USER LICENSE AGREEMENT.
Do you agree to the Pivotal Greenplum Command Center End User License Agreement? Yy/Nn (Default=Y)
y
 
Where would you like to install Greenplum Command Center? (Default=/usr/local)
/data1/gpdb/gpcc/
Path not exist, create it? Yy/Nn (Default=Y)
y
 
What would you like to name this installation of Greenplum Command Center? (Default=gpcc)
 
What port would you like gpcc webserver to use? (Default=28080)
 
Would you like to enable kerberos? Yy/Nn (Default=N)
 
 
Would you like enable SSL? Yy/Nn (Default=N)
 
Installation in progress...
 
Successfully installed Greenplum Command Center.
 
We recommend ssh to standby master before starting GPCC webserver
 
To start the GPCC webserver on the current host, run gpcc start

修改環境變量(全部機器)

[gpadmin@master ~]$ vi .bash_profile
#添加
source /data1/gpdb/gpcc/greenplum-cc-web-4.2.0/gpcc_path.sh 
[gpadmin@master ~]$ source .bash_profile

修改pg_hba.conf文件鏈接

[gpadmin@master ~]$ vi /data1/gpdb/data/master/gpseg-1/pg_hba.conf 
#在最後一行添加這句
host     all         gpmon         (本機的ip)/24     md5
[gpadmin@master ~]$ gpstop -M fast -a  
[gpadmin@master ~]$ gpstart -a
[gpadmin@master ~]$ gpcc start

打開網址訪問http://192.168.12.101:28080/login,密碼爲前面設置的密碼

關閉greenplum-cc-web監控

[gpadmin@master ~]$ gpcc stop
相關文章
相關標籤/搜索