Skip to main content
Version 3.1.1

PgSmart Parameters Configuration

Sintaxe do Comando
Terminal input
    pgsmart config [COMPONENTES] [Flags] 

COMPONENTS:

  • client => settings for the local PgSmart client
  • **Agent => settings for the PgSmart Remote Agent

Flags:

  • -a, --agent= <agent>. => Alias, host name or IP of the server where the PgSmart Agent is installed.
  • -h, --help. => Help

Supported parameters:

PgSmart Client and PgSmart Agent parameters

  • default_timeout: Specifies the maximum time that PgSmart can execute a command from the OS or components that are part of the PostgreSYS platform.
  • Log command history: Enables/disables history logging of commands executed by PgSmart in the OS.
  • log_debug: Enables/disables the names of modules/functions (namespaces) in the PgSmart code to be debugged.
  • log_detail: Specifies the level of detail of information to be recorded in the log
  • log_rotation_age: Enables automatic rotation of the log when it is opened if the elapsed time since the file was created exceeds a specified soft limit.
  • log_rotation_size: Enables the automatic execution of log rotation on opening if the file size exceeds the defined value (soft limit).

PgSmart Agent specific parameters

  • agent port: TCP port on which the PgSmart Agent listens for requests from PgSmart Clients.
  • backup_adm_timeout: Maximum time that PgSmart can perform administrative operations on backup environments.
  • geo_install_timeout: Maximum time for PgSmart to perform the installation of the georeferencing component (PostGIS).
  • ha_adm_timeout: Maximum time for PgSmart to perform high availability environment administration operations.
  • install_timeout: Maximum time for PgSmart to perform the installation of each repository and package of the components that are part of the PostgreSYS platform.
  • job_check_interval: Interval between check runs of the PgSmart Agent Task Scheduler.
  • job_disk_retention_age: Maximum time that the metadata file of completed tasks, whether successful or not, can remain available for consultation before being archived.
  • job_mem_retention_age: Maximum time the information from the queues of completed tasks, whether successful or not, can remain in the PgSmart Agent memory.
Executing Commands
  1. Select the parameters option.

  2. Select the desired parameter

  3. PgSmart displays the current data for the selected parameter.

  4. Type the new value for the parameter.

  5. Confirm the operation.

    note

    PgSmart Client settings are stored in the pgsmart.conf file in the /opt/pgsmart-client `directory.

    note

    The configuration parameters for PgSmart Agent and PgSmart Client are similar. To configure the PgSmart Agent, you must first select the desired Agent.

    Figure 1 - PgSmart Parameters Configuration
    Figure 1 - PgSmart Parameters Configuration

Command Variations

Some parameters can be passed in advance in the command, but the execution remains interactive, i.e. during the installation, the parameters entered must be confirmed, along with the Default values for those parameters not entered.

Examples:

Configuring the Agent component:

Terminal input
    pgsmart config agent\

Configure the agent component, with the host already selected:

Terminal input
    pgsmart config agent -a 192.168.0.102\
Final Notes
note

PgSmart Client settings are stored in the pgsmart.conf file in the /opt/pgsmart-client directory.

note

The configuration parameters of PgSmart-Agent and PgSmart-Client are similar. To configure the PgSmart Agent, you must first select the desired Agent.