gauss常用命令1
集中式查看集群信息
gs_om -t status --detail
集中式重启
gs_om -t stop; gs_om -t start
PG数据库查看当前连接数:
select count(1) from pg_stat_activity;
PG数据库查看最大连接数:
show max_connections;
最大连接数也可以在pg配置文件中配置:
在postgresql.conf中设置:
max_connections = 500
集中式查看集群信息
gs_om -t status --detail
集中式重启
gs_om -t stop; gs_om -t start
select count(1) from pg_stat_activity;
PG数据库查看最大连接数:
show max_connections;
最大连接数也可以在pg配置文件中配置:
在postgresql.conf中设置:
max_connections = 500