Quick onboard
Deployment
Data Modeling
Connection
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
This document introduces the routine operations and maintenance tools for YMatrix, which are divided into the following two parts:
Note!
All command-line tools are controlled through the master node (Master), so they must be executed on the Master node.
YMatrix 6 uses the same cluster management tools as YMatrix 5. We provide the following O&M tools: mxstart, mxstop, mxstate.
Note!
YMatrix 4 (MatrixDB 4) still uses Greenplum series O&M tools by default. For details, see YMatrix 4 Cluster Basic Management.
Use the mxstart -a command to start the YMatrix cluster.
[mxadmin@mdw ~]$ mxstart -a
The mxstop -a command stops a running YMatrix cluster.
| mxstop Mode | Parameter | Reject New Connections | Wait for Active Processes | Default Mode? |
|---|---|---|---|---|
| smart | -M smart | Yes | Yes | Yes |
| fast | -M fast | Yes | No, terminate connections, roll back transactions | No |
| immediate | -M immediate | Yes | No, kill processes immediately | No |
[mxadmin@mdw ~]$ mxstop -a -M fast
Choose one mode to stop the cluster. For most YMatrix cluster scenarios, using the fast mode is recommended. If no mode is specified (mxstop -a), the system defaults to smart mode, allowing current operations to complete naturally, though this may take longer. The command blocks new connections but does not affect ongoing usage of the cluster.
Use mxstop -ar to restart the cluster.
After modifying the pg_hba.conf authorization configuration, use mxstop -u to reload it.
Use mxstate to check the cluster's operational status, including:
[mxadmin@mdw ~]$ mxstate
Use gpconfig to view or modify parameters in the configuration file postgresql.conf.
Use gpconfig -s followed by the parameter name to view its value:
[mxadmin@mdw ~]$ gpconfig -s shared_buffers
Values on all segments are consistent
GUC : shared_buffers
Master value: 1078464kB
Segment value: 1078464kB
Use gpconfig -c {configuration_name} -v {value} to change a configuration:
[mxadmin@mdw ~]$ gpconfig -c shared_buffers -v 128MB
20210723:17:13:35:004318 gpconfig:sdw2:mxadmin-[INFO]:-completed successfully with parameters '-c shared_buffers -v 128MB'
Restart the cluster for changes to take effect:
[mxadmin@mdw ~]$ mxstop -ar
After restarting, verify the updated configuration:
[mxadmin@mdw ~]$ gpconfig -s shared_buffers
Values on all segments are consistent
GUC : shared_buffers
Master value: 128MB
Segment value: 128MB
Note!
For detailed usage ofgpconfig, refer to gpconfig
Typically, you might query system catalogs such as pg_database, pg_class to obtain cluster metadata.
To make viewing this information (such as databases, tables, table sizes, types, access times, etc.) more convenient and intuitive, YMatrix provides a graphical web interface. With simple clicks, you can quickly access the information you need.
First, log in to the graphical interface. In your browser, enter the IP address (by default, the Master node's IP) and port number where the MXUI service is running:
http://<IP>:8240
After logging in, you enter the "Cluster Management" page, which displays the "Metrics View" by default. It consists of two sections:

Switch to the "Instance View". Node information changes from metrics to instance status and distribution.

Hover over any instance to view its detailed information.

Switch to the "List View" to display node information in tabular format, including instance status, DBID, port, storage path, etc.

Click the "Tables" option on the left to go to the table page. All databases are displayed:

You can also select a specific database from the list:

A list of all tables in the selected database appears, showing statistics such as table name, database name, schema, number of partitions, size, owner, estimated row count, last access time, last modification time, and last statistics update time.
Click on a specific table to view its detailed information.
The detail page has two sections: Basic Info and Structure Info.
Basic information is similar to what is shown in the list view. Below is statistical data:

Table structure:

For partitioned tables, you can view detailed information about each partition:

With these two views, you can gain comprehensive insights into table-level data, aiding in cluster management and maintenance.