HomeMogDBMogDB StackUqbar
v3.0

Documentation:v3.0

Supported Versions:

Other Versions:

gs_watch

Introduction

The gs_watch tool monitors the MogDB process. When gs_watch is enabled, once MogDB process malfunctions and crashes, gs_watch automatically call gs_collector to collect the system status.

Syntax

  • Enable automatic trigger.

    gs_watch -t start [-o OUTDIR] [--pid=PID]
  • Disable automatic trigger.

    gs_watch -t stop [--pid=PID]

Parameter Description

Parameter Description
-t Specifies the gs_watch command type.
Values: start and stop
-o Specifies the export path for gs_collector to collect results in the event of a system crash.
Note: If this parameter is not specified, the check result is output to the $GAUSSLOG directory as a package by default.
--pid Specifies the process ID.
If multiple MogDB processes are started, you need to set this parameter to specify which MogDB process needs to be watched or stopped watching. Otherwise, an error may occur.

Example

  1. Enable automatic trigger.

    gs_watch -t start -o /opt/mogdb/data --pid=23550
  2. Disable automatic trigger.

    gs_watch -t stop --pid=23550

gs_collector

Copyright © 2011-2024 www.enmotech.com All rights reserved.