gds_check is used to check the GDS deployment environment, including the OS parameters, network environment, and disk usage. It also supports the recovery of system parameters. This helps detect potential problems during GDS deployment and running, improving the execution success rate.
Parameter |
Recommended Value |
---|---|
net.core.somaxconn |
65535 |
net.ipv4.tcp_max_syn_backlog |
65535 |
net.core.netdev_max_backlog |
65535 |
net.ipv4.tcp_retries1 |
5 |
net.ipv4.tcp_retries2 |
12 |
net.ipv4.ip_local_port_range |
26000 to 65535 |
MTU |
1500 |
net.core.wmem_max |
21299200 |
net.core.rmem_max |
21299200 |
net.core.wmem_default |
21299200 |
net.core.rmem_default |
21299200 |
max handler |
1000000 |
vm.swappiness |
10 |
Check Item |
Warning |
---|---|
Disk space usage |
Greater than or equal to 70% and less than 90% |
Inode usage |
Greater than or equal to 70% and less than 90% |
Check Item |
Error |
---|---|
Network connectivity |
100% packet loss |
NIC multi-queue |
When NIC multi-queue is enabled and different CPUs are bound, fix can be modified. |
gds_check -t check --host [/path/to/hostfile | ipaddr1,ipaddr2...] --ping-host [/path/to/pinghostfile | ipaddr1,ipaddr2...] [--detail]
gds_check -t fix --host [/path/to/hostfile | ipaddr1,ipaddr2...] [--detail]
Operation type, indicating check or recovery.
The value can be check or fix.
IP addresses of the nodes to be checked or recovered.
Value: IP address list in the file or character string format
Destination IP address for the network ping check on each node to be checked.
Value: IP address list in the file or character string format. Generally, the value is the IP address of a DN, CN, or gateway.
Displays detailed information about check and repair items and saves the information to logs.
Perform a check. Both --host and --ping-host are in character string format.
gds_check -t check --host 192.168.1.100,192.168.1.101 --ping-host 192.168.2.100
Perform a check. --host is in character string format and --ping-host is in file format.
gds_check -t check --host 192.168.1.100,192.168.1.101 --ping-host /home/gds/iplist cat /home/gds/iplist 192.168.2.100 192.168.2.101
Perform a check. --host is in file format and --ping-host is in character string format.
gds_check -t check --host /home/gds/iplist --ping-host 192.168.1.100,192.168.1.101
Perform a recovery. --host is in character string format.
gds_check -t fix --host 192.168.1.100,192.168.1.101
Run the following command to perform the check, print the detailed information, and save the information to logs:
gds_check -t check --host 192.168.1.100 --detail
Run the following command to perform the repair, print the detailed information, and save the information to logs:
gds_check -t fix --host 192.168.1.100 --detail