Quick onboard
Deployment
Data Modeling
Connecting
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Mirroring
Resource Management
Security
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 management tools for YMatrix, which are divided into the following two parts:
Note!
All command-line tools are controlled through the master node (Master). Therefore, they must be executed on the Master node.
YMatrix 6 uses the same cluster management tools as YMatrix 5. We provide the following operational utilities: mxstart, mxstop, and mxstate.
Note!
YMatrix 4 (MatrixDB 4) still uses Greenplum series tools by default. For details, see YMatrix 4 Cluster Basic Management.
Use the mxstart -a command to start a 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 with transaction rollback | No |
| immediate | -M immediate | Yes | No, kill processes immediately | No |
[mxadmin@mdw ~]$ mxstop -a -M fast
Select one mode to stop the cluster. For most YMatrix scenarios, the fast mode is recommended. If no mode is specified (mxstop -a), the system defaults to smart mode, allowing current operations to complete naturally. However, this may take longer. The command being blocked does not affect ongoing usage of the cluster, but no new connections can be established.
Use mxstop -ar to restart the cluster.
After modifying the pg_hba.conf authorization configuration, run mxstop -u to reload it.
Use mxstate to view 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 display 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 parameter:
[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 setting:
[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.
YMatrix provides a graphical user interface (MXUI) that allows you to perform common tasks with simple clicks.
First, log in to the MXUI. Open your browser and enter the IP address (by default, the Master's IP) and port number where the MXUI service runs:
http://<IP>:8240
Log in to MatrixUI and go to the Cluster page. The database cluster status shows "Stopped".

Click the Operations button at the top-right corner and select Start Database, navigating to the startup homepage.

On the startup page, click the Start database button. A confirmation dialog appears. Click OK to begin starting the database cluster.


After the database starts successfully, click Done to return to the Cluster page.

Log in to the UI and open the Cluster Management page. The database cluster is running normally.

Click the Operations button at the top-right corner and select Stop database, entering the shutdown homepage.

You can choose among three shutdown modes: Fast, Immediate, and Conservative.

After logging in, the default Metrics View on the Cluster Management page includes two sections:

Switch to Instance View to see instance status and distribution across nodes.

Hover over any instance to view its detailed information.

Switch to List View to see node details in tabular format, including instance status, DBID, port, and storage path.

Click Tables on the left sidebar to access the table list, showing all databases:

You can also select a specific database from the dropdown:

A list of all tables in the selected database is displayed, including: table name, database name, schema, number of partitions, size, owner, estimated row count, last accessed time, last modified time, and last statistics update time.
Click a specific table to view its detailed information.
The detail page has two sections: Basic Info and Structure.
Basic Info displays similar content as the list view, with additional statistics below:

Table Structure:

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

These views provide comprehensive insights into table-level data, supporting effective cluster management and maintenance.