Pivotal Knowledge Base

Follow

How to increase and decrease Greenplum Command Center web session timeout

Environment

Product Version
Greenplum Command Center (GPCC)  1.3.X

Purpose

Greenplum Command Center web sessions automatically times out after a fixed period of time (default is 30 minutes).

This article explains how to modify this value so users can have longer or shorter session timeouts.

Procedure

1. Confirm what is the current timeout value for your GPCC instance (default is 1800s)

[gpadmin@localhost ~]$ echo $GPPERFMONHOME 
/usr/local/greenplum-cc-web/.
[gpadmin@localhost ~]$ awk '{if ($1 == "timeout") print $3}' /usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf
1800

If you don't know the name of your active GPCC instance you can find out by running:

[gpadmin@localhost ~]$ gpcmdr --status

2. Backup the configuration file and change the timeout value

2.1 Backup original configuration file

[gpadmin@localhost ~]$ cp /usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf /usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf.old

2.2 Change the value (in this case to 100s)

[gpadmin@localhost ~]$ awk '{if ($1 == "timeout") $3=100; print > "/usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf"}' /usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf

To change to a different number of seconds for the timeout, change $3=<timeout_in_seconds> in the previous command.

2.3 Confirm the changes

[gpadmin@localhost ~]$ awk '{if ($1 == "timeout") print $3}' /usr/local/greenplum-cc-web/instances/<your_instance_name>/conf/gpperfmonui.conf
100

3. Restart the Command Center Console instance

gpcmdr --restart <your_instance_name>

Additional Information

For more information about all the configurable parameters in this configuration file, you can refer to the official GPCC documentation.

Comments

Powered by Zendesk