分类: 数据库开发技术
2010-08-07 15:52:44
create role gpmon with superuser createdb login encrypted password 'gpmon';
8月6日配置的pg_hba.conf文件local all gpadmin ident
host all gpadmin 127.0.0.1/32 trust
host all gpadmin 10.25.115.16/32 trust
host all gpadmin 10.25.115.8/32 trust
host gpperfmon gpmon 127.0.0.1/24 md5
local gpperfmon gpmon md5贴出segment的pg_hba.conf文件
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trusthost all all 10.25.115.16/32 trust
host all all 10.25.115.14/32 trust
host all all 10.25.115.17/32 trust
host all all 10.25.115.8/32 trust
host all all 192.168.122.1/32 trust
gpstop -u
添加如下内容#--------------------------------
# GPPERFMON OPTIONS
#--------------------------------
gp_enable_gpperfmon=on
gpperfmon_port=8888去掉已有参数的注释#gp_external_enable_exec = on的#gp_external_enable_exec = on
gpstop -u
1)在master安装2)在segment安装3)配置Greenplum Performance Monitor Database
The quantum value specifies the time in seconds between updates from
performance monitor agents on all segments.
Quantum (between 10 and 60 seconds). [15]:The minimum query run time specifies the cutoff time for queries to log.
Only queries with a run time greater than this value will be logged in
the queries_history table.
Minimum query run time (seconds) [60]:The minimum detailed query run time specifies the cutoff time for queries
to log detailed iterator metrics. Only queries with a run time greater
than this value will have their detailed metrics logged in the
iterators_history table.
Minimum detailed query run time (seconds) [60]:Log file location [/home/gpadmin/gpmaster/gp-1/gpperfmon/logs]:
------------------------
Web Server Configuration
------------------------gpperfmon 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.
Web server port [28080]:8888Do you want to enable SSL for the Web API (Y/N) [Y]:nDone writing lighttpd configuration to /home/gpadmin/gpmaster/gp-1/gpperfmon/conf/lighttpd.conf
Done writing gpperfmon configuration to /home/gpadmin/gpmaster/gp-1/gpperfmon/conf/gpperfmon.confGreenplum Performance Monitor configuration is now complete. If
at a later date you want to change certain parameters, you can
either re-run 'gpperfmon --setup' or edit the configuration file
located at /home/gpadmin/gpmaster/gp-1/gpperfmon/conf/gpperfmon.conf.You can start monitoring this Greenplum Database instance by running
'gpperfmon --start'.
The web based UI is available at
登录使用的用户名为:gpmon
密码是:
PGPASSWORD='password1234' PGPORT='6432' gpperfmon --setup 的初始化的密码登录界面;![]()
登陆后的界面:系统汇总信息
系统统计信息查询监控