执行obd cluster deploy 可否指定目标机器的端口?

【产品名称】obdeploy

【产品版本】1.0.0

【问题描述】example - yaml 脚本 SSH 信息部分 可否指定特定的SSH 端口?

查看ssh.py 代码发现使用的是默认的22端口,timeout设定为30。官方是否考虑之后优化一下?

感谢您的反馈。

您反馈的功能OBD是支持的.您可以直接在您的yaml配置中使用以下配置:

 user:
   username: your username
   password: your password if need
   key_file: your ssh-key file path if need
   port: your ssh port
   timeout: ssh connection timeout (second)

感谢如此快速的回复,赞👍

由于之前没有找到obdeploy 的文档,习惯性地在servers信息中补充了port信息,发现是不生效的。

oceanbase-ce: 
  servers:
    -name: z1
     ip: xxx.xxx.xxx.xxx
     port: xxxx

遂改用单机部署方式率先尝鲜,现在已经成功进行分布式模式地部署,可以愉快的体验OceanBase啦

如果出现不同物理机的sshd服务端口号不相同,是否放在server处会更灵活一些呢?当然也理解官方将port配置放在user中能够更快速通配的设计。

我们暂时不支持。欢迎到社区https://github.com/oceanbase/obdeploy 提issue和贡献代码

1 个赞

如果是多个ip该怎么写,一直报oceanbase-ce's servers list is empty这个错误

如果是多个ip该怎么写,一直报oceanbase-ce's servers list is empty这个错误

应该是缩进有问题。多个server可以参考该用例配置https://github.com/oceanbase/obdeploy/blob/master/example/distributed-example.yaml#L9