gds_ctl.py

Context

gds_ctl.py can be used to start and stop gds if gds.conf has been configured.

Prerequisites

Run the following commands on Linux OS: You need to ensure that the directory structure is as follows before the execution:

|----gds

|----gds_ctl.py

|----config

|-------gds.conf

|-------gds.conf.sample

or

|----gds

|----gds_ctl.py

|-------gds.conf

|-------gds.conf.sample

Content of gds.conf:

<?xml version="1.0"?>
<config>
<gds name="gds1" ip="127.0.0.1" port="8098" data_dir="/data" err_dir="/err" data_seg="100MB" err_seg="1000MB" log_file="./gds.log" host="10.10.0.1/24" daemon='true' recursive="true" parallel="32"></gds>
</config>

Configuration description of gds.conf:

Syntax

gds_ctl.py [ start | stop all | stop [ ip: ] port | stop | status ]

Description

gds_ctl.py can be used to start or stop GDS if gds.conf is configured.

Parameter Description

Examples

Start the GDS.

python3 gds_ctl.py start

Stop the GDS started by the configuration file.

python3 gds_ctl.py stop

Stop all the GDS instances that can be stopped by the current user.

python3 gds_ctl.py stop all

Stop the GDS instance specified by [ip:]port that can be stopped by the current user.

python3 gds_ctl.py stop 127.0.0.1:8098

Query the GDS status.

python3 gds_ctl.py status