跳转至

seabox notify

seabox notify

SeaboxMPP数据库通知管理

语法

``` bash seabox notify [OPTIONS]

Options: -h, –help show this help, then exit

其中Commands可为以下命令之一:

``` bash
  kill    seabox notify kill signal.
  reload  seabox notify reload configuration files.

描述

SeaboxMPP数据库通知管理,可通知集群重新载入配置文件,可对集群中某个节点的某个进程发送kill信号

  • 注意:如有注意事项,补充
选项

该命令支持选项说明如下:

Options

命令支持的选项

-h, --help
使用该选项时返回seabox notify命令的帮助信息
Commands

seabox notify支持的命令,包括以下:

kill
对集群中某个节点的某个进程发送kill信号
reload
通知集群重新载入配置文件
注解

如有具体的使用限制及注意事项,在这部分列出。

  • 注意: seabox notify命令要求使用SeaboxMPP数据库集群安装用户seabox,或root用户,且需通过以下命令设置正确的环境变量:
source $SDHOME/seaboxmpp_path.sh

其中,$SDHOME为安装SeaboxMPP数据库服务的主目录。

示例

以下是seabox notify --help的执行结果:

[seabox@mpp-test-1 bin]$ seabox notify --help
seabox notify management.

Usage: 
  seabox notify [OPTIONS]

Options:
  -h, --help  show this help, then exit

Commands:
  kill    seabox notify kill signal.
  reload  seabox notify reload configuration files.

以下命令可重载集群配置文件

[seabox@master_regress1 sdsql]$ seabox notify reload
2022-07-06 17:36:30 CST [51316] seabox_stop master_regress1:seabox INFO: gathering information and validating the environment...
2022-07-06 17:36:30 CST [51316] seabox_stop master_regress1:seabox INFO: seabox version: 'seaboxsql (SeaboxSQL) 21.1.0.1678'
2022-07-06 17:36:33 CST [51316] seabox_stop master_regress1:seabox INFO: signalling all seabox processes to reload

以下命令可杀死指定host的指定进程

[seabox@sy1 ~]$ seabox notify kill --host sy1 --pid 23162 KILL
[seabox@sy1 ~]$

相关命令