【GP】greenplum監控軟體Greenplum-cc-web的安裝
1 基本準備
-
在GreenplumMaster節點操作:
-
-
1) 使用gpadmin使用者登入
-
linux116:~# su - gpadmin
-
-
2) 執行 gpperfmon_install 命令
- gpadmin@linux116:~> gpperfmon_install--enable --password 1qaz2wsx --port 5432
- 命令執行後,會建立gpmon角色,以及設定了密碼,這個使用者可以登入到資料庫裡面,也可用於登入頁面。
-
3) 重啟greenplum 資料庫
gpadmin@linux116:~> gpstop -r
4) 檢視gpmon程式,是否已經啟用
gpadmin@linux116:~> ps -ef | grep gpmmon |grep -v grep
gpadmin 27036 27027 0 16:18 ? 00:00:00/usr/local/greenplum-db/bin/gpmmon -D /data/master/gpseg-1/gpperfmon/conf/gpperfmon.conf-p 5432
5) 檢視資料收集程式是否正常(需要等大約30s左右才可以檢視到)
gpadmin@linux116:~> psql gpperfmon -c 'SELECT* FROM system_now;'
ctime | hostname | mem_total | mem_used | mem_actual_used | mem_actual_free |swap_total | swap_used | swap_page_in |swap_page_out | cpu_user | cpu_sys | cpu
_idle | load0 | load1 | load2 | quantum | disk_ro_rate | disk_wo_rate |disk_rb_rate | disk_wb_rate | net_rp_rate | net_wp_rate | net_rb_rate |net_wb_rate
---------------------+----------+-------------+-------------+-----------------+-----------------+-------------+-----------+--------------+---------------+----------+---------+----
------+-------+-------+-------+---------+--------------+--------------+--------------+--------------+-------------+-------------+-------------+-------------
2014-05-19 16:21:30 | linux113| 25202618368 | 21777362944 | 7865163776 | 17337454592| 2154979328 | 23846912 | 0 | 0 | 1.68 | 1.89 |
96.18 | 0.07 | 0.08 | 0.09 | 15 | 0 | 13 | 0 | 135518 | 13 | 15 | 1776 | 2110
2014-05-19 16:21:30 | linux116| 25202618368 | 17788657664 | 2744700928 | 22457917440| 2154979328 | 22982656 | 0 | 0 | 0.71 | 0.22 |
98.56 | 0.1 | 0.16 | 0.06 | 15 | 0 | 7 | 0 | 84269 | 51 | 54 | 11435 | 32212
2014-05-19 16:21:30 | NOAS252 | 50609725440 | 40639737856 | 9263038464 | 41346686976 | 25777983488 | 0 | 0 | 0 | 1.61 | 1.84 |
96.32 | 0.39 | 0.42 | 0.36 | 15 | 0 | 46 | 0 | 454920 | 80 | 75 | 204981 | 183732
(3 rows)
下面配置GreenplumStandby Master節點:
在primarymaster上面執行:
1) 將primary master上面的$MASTER_DATA_DIRECTORY/pg_hba.conf複製到standby master的$MASTER_DATA_DIRECTORY/pg_hba.conf
gpadmin@linux116:~> scp $MASTER_DATA_DIRECTORY/pg_hba.confgpadmin@linux113:$MASTER_DATA_DIRECTORY/pg_hba.conf
2) 將primary master上面的~/.pgpass複製到standby master的~/.pgpass,並且檔案許可權修改為0600
gpadmin@linux116:~> scp ~/.pgpass gpadmin@linux113:~/.pgpass
gpadmin@linux116:~> ssh gpadmin@linux113 -C "chmod 0600~/.pgpass"
2 下載安裝
-
1、下載地址:
-
-
官網下載:https://network.pivotal.io/products/pivotal-gpdb#/releases/1533/file_groups/26
-
-
雲盤下載:http://pan.baidu.com/s/1hqZU72W
-
-
2、解壓安裝:
-
- 這裡我以greenplum-cc-web-2.0.0為例:
-
$ unzip greenplum-cc-web-2.0.0-build-32-RHEL5-x86_64.zip
-
$ ./greenplum-cc-web-2.0.0-build-32-RHEL5-x86_64.bin
-
注:因為預設安裝路徑是/usr/local,避免許可權問題,可以先用root安裝,再修改成gpadmin訪問許可權。
-
- 安裝過程中可根據提示作出自己的選擇和修改,首先得接受pivotal的協議。
3、使環境變數生效,執行source:
$ source /usr/local/greenplum-cc-web/gpcc_path.sh
4 新增 GPPERFMONHOME 環境變數到gpadmin的~/.bashrc:
GPPERFMONHOME=/usr/local/greenplum-cc-web-2.0.0-build-32
source $GPPERFMONHOME/gpcc_path.sh
5.生效:
source ./bashrc
6.執行 gpccinstall 命令安裝 Command Center 到所有的主機上:
[root@RZ-PROD-DB-G7-02 dbbak]# gpccinstall -f all_hosts
3 開始安裝
- 以下是我的設定,可以根據自己的實際情況設定:
-
[gpadmin@mdw ~]$ gpcmdr --setup
-
-
An instance name is used by the Greenplum Command Center as
-
a way to uniquely identify a Greenplum Database that has the monitoring
-
components installed and configured. This name is also used to control
-
specific instances of the Greenplum Command Center web UI. Instance names
-
can contain letters, digits and underscores and are not case sensitive.
-
-
Please enter a new instance name:
-
> gpmon
-
The web component of the Greenplum Command Center can connect to a
-
monitor database on a remote Greenplum Database.
-
-
-
Is the master host for the Greenplum Database remote? Yy|Nn (default=N):
-
> n
-
The display name is shown in the web interface and does not need to be
-
a hostname.
-
-
-
What would you like to use for the display name for this instance:
-
> linux1024
-
What port does the Greenplum Database use? (default=5432):
-
>
-
Creating instance schema in GPDB. Please wait ...
-
The display name is shown in the web interface and does not need to be
-
a hostname.
-
-
-
-
Would you like to install workload manager? Yy|Nn (default=N):
-
> n
-
Skipping installation of workload manager.
-
The Greenplum Command Center runs a small web server for the UI and web API.
-
This web server by default runs on port 28080, but you may specify any available port.
-
-
What port would you like the web server to use for this instance? (default=28080):
-
>
-
Users logging in to the Command Center must provide database user
-
credentials. In order to protect user names and passwords, it is recommended
-
that SSL be enabled.
-
-
-
Do you want to enable SSL for the Web API Yy|Nn (default=N):
-
>
-
-
Do you want to enable ipV6 for the Web API Yy|Nn (default=N):
-
>
-
-
Do you want to enable Cross Site Request Forgery Protection for the Web API Yy|Nn (default=N):
-
>
-
-
Do you want to copy the instance to a standby master host Yy|Nn (default=Y):
-
> n
-
-
Done writing lighttpd configuration to /usr/local/greenplum-cc-web/./instances/gpmon/conf/lighttpd.conf
-
Done writing web UI configuration to /usr/local/greenplum-cc-web/./instances/gpmon/conf/gpperfmonui.conf
-
Done writing web UI clustrs configuration to /usr/local/greenplum-cc-web/./instances/gpmon/conf/clusters.conf
-
-
Greenplum Command Center UI configuration is now complete. If
-
at a later date you want to change certain parameters, you can
-
either re-run 'gpcmdr --setup' or edit the configuration file
-
located at /usr/local/greenplum-cc-web/./instances/gpmon/conf/gpperfmonui.conf.
-
-
The web UI for this instance is available at http://mdw:28080/
-
-
You can now start the web UI for this instance by running: gpcmdr --start gpmon 安裝完後啟動!
-
No instances
-
期間你可能會遇到報錯:FATAL: no pg_hba.conf entry for host "::1"
-
解決辦法:
- 在pg_hba.conf中新增:
- host all all ::1/128 trust
-
解決辦法:
-
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2144641/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 原始碼安裝NTOP監控軟體原始碼
- 安裝GP CCC(Greenplum Command Center Console)
- 開源監控軟體ganglia安裝手冊
- 流量統計監控軟體ntop安裝(轉)
- Linux系統安裝zabbix 4.4監控軟體Linux
- Kafka - 監控軟體Kafka
- oracle監控軟體Oracle
- 【監控】Zabbix安裝
- greenplum安裝部署
- GreenPlum的安裝步驟
- APM效能監控軟體的監控型別服務及監控流程型別
- Zabbix監控安裝部署
- Munin監控的安裝與配置
- greenplum 4.3.33安裝
- Greenplum gp_vmem_protect_limit 出錯MIT
- Spotlight On Oracle 監控軟體Oracle
- Zabbix監控各類軟體
- 資料庫監控軟體資料庫
- WebSphere效能監控軟體WASMonWebASM
- ai影片監控分析軟體AI
- Cacti安裝磁碟IO監控
- greenplum單節點安裝
- GreenPlum資料庫安裝資料庫
- Greenplum安裝dblink模組
- GP完整安裝手冊
- 配置CACTI監控MySQL資料庫狀態(2)安裝cacti相關軟體包MySql資料庫
- 網速監控軟體 Traffic Monitor
- Linux常用的監控軟體介紹!Linux
- Redis安裝+叢集+效能監控Redis
- zabbix監控客戶端安裝客戶端
- cacti監控(2)正式安裝rrdtoolcacti
- 安裝使用OSWatcher監控工具
- zabbix監控系統的安裝與配置
- 域控組策略日常分發、安裝、軟體的小結
- 軟體安裝
- linux遠端監控軟體nomachine的使用LinuxMac
- TG Pro for Mac(溫度監控軟體)Mac
- Ganglia監控Hadoop叢集的安裝部署Hadoop