seabox start
seabox start¶
启动SeaboxMPP数据库服务
- 语法
-
``` bash seabox start [OPTIONS]
Options: -a, –prompt execute automatically -v, –verbose debug output -c, –core generate core file -g, –group TEXT logic group –start-timeout INTEGER fail after waiting timeout(s) for module startup –module-timeout INTEGER fail after waiting timeout(s) for checking startup -h, –help show this help, then exit ```
- 描述
-
启动SeaboxMPP数据库服务,支持指定宕机时生成core文件,支持启动指定的逻辑集群,支持设置组件启动的最大超时时间,支持启用多线程模式等
- 注意:如有注意事项,补充
- 选项
-
该命令支持选项说明如下:
- Options
-
命令支持的选项
-a, --prompt
- 使用该选项时表示自动执行,不再需要用户确认
-v, --verbose
- 使用该选项时表示程序运行过程中,输出详细的调试信息,便于故障定位
-c, --core
- 使用该选项时表示在集群宕机时生成core文件
-g, --group
- 使用该选项时表示启动逻辑集群,后面跟指定的逻辑集群名称
--start-timeout
- 使用该选项时表示设置组件启动的最大超时时间,后面跟指定的最大超时时间
--module-timeout
- 使用该选项时表示设置检查组件是否启动的最大超时时间,后面跟指定的最大超时时间
-h, --help
- 使用该选项时返回seabox start命令的帮助信息
- 注解
-
如有具体的使用限制及注意事项,在这部分列出。
- 注意: seabox start命令要求使用SeaboxMPP数据库集群安装用户seabox,或root用户,且需通过以下命令设置正确的环境变量:
source $SDHOME/seaboxmpp_path.sh
其中,$SDHOME为安装SeaboxMPP数据库服务的主目录。
- 示例
-
以下是
seabox start --help
的执行结果:[seabox@mpp-test-1 bin]$ seabox start --help start seabox service. Usage: seabox start [OPTIONS] Options: -a, --prompt execute automatically -v, --verbose debug output -c, --core generate core file -g, --group TEXT logic group --start-timeout INTEGER fail after waiting timeout(s) for module startup --module-timeout INTEGER fail after waiting timeout(s) for checking startup -h, --help show this help, then exit
以下命令可启动数据库服务
[seabox@sy1 mpp]$ seabox start -a 2022-07-07 03:20:08 UTC [12458] seabox_start sy1:seabox INFO: start scdcs on: sy1 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: scdcs start successfully on nodes '['sy1']' 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: gathering information and validating the environment... 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: seabox binary version: 'seaboxsql (SeaboxSQL) 21.1.0.1678' 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: cluster instance parameters 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: timeout = 600 seconds 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: coordinator instances that will be started 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: Host Datadir Port 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/coordinatordd/0 33711 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: executor instances that will be started 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: Host Datadir Port 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/mirror/0/2 33724 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/mirror/0/3 33722 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/mirror/0/4 33723 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/mirror/0/5 33724 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/primary/0 33712 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/primary/1 33713 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/executordd/primary/2 33714 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/primary/3 33712 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/primary/4 33713 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/primary/5 33714 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/mirror/0/0 33722 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy2 /home/seabox/mpp/data/executordd/mirror/0/1 33723 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: gtm instances that will be started: 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: Host Datadir Port 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/gtm 33726 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: monitor instances that will be started: 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: Host Datadir 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/coordinatordd/monitor/14 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: scdcs instances that will be started: 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: -------------------------------------------- 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: Host Datadir ServicePort InnerPort 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: sy1 /home/seabox/mpp/data/scdcs/0 33731 33732 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: start gtm 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: 0.00% of jobs completed 2022-07-07 03:20:14 UTC [12458] seabox_start sy1:seabox INFO: 100.00% of jobs completed . 2022-07-07 03:20:15 UTC [12458] seabox_start sy1:seabox INFO: gtm start success 2022-07-07 03:20:15 UTC [12458] seabox_start sy1:seabox INFO: commencing parallel executor instance startup, please wait... 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: process results... 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: successful executor starts = 12 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: failed executor starts = 0 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: successfully started 12 of 12 executor instances 2022-07-07 03:20:17 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: process results... 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: successful coordinator starts = 1 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: failed coordinator starts = 0 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: successfully started 1 of 1 coordinator instances 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: ---------------------------------------------------- 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: start monitor 2022-07-07 03:20:19 UTC [12458] seabox_start sy1:seabox INFO: 0.00% of jobs completed 2022-07-07 03:20:20 UTC [12458] seabox_start sy1:seabox INFO: 100.00% of jobs completed . 2022-07-07 03:20:21 UTC [12458] seabox_start sy1:seabox INFO: successfully started 1 of 1 monitor instances
- 相关命令
- 无