在Nebula console注册Storage时,怎么直接注册hostname。ADD HOSTS 只能使用IP增加吗?

  • nebula 版本:3.1.0
  • 部署方式:单机
  • 安装方式:RPM
  • 是否为线上版本:Y / N
  • 硬件信息
    cpu 1000 限制为 2000,内存512 最大2048
  • 问题的具体描述
    期望K8S pod注册Storage时灵活配置IP

ADD HOSTS 的对象不限于 IP,hostname 只要可以被访达就可以哈。


(root@nebula) [(none)]> add hosts "foo-bar":9779
Execution succeeded (time spent 13720/14409 us)

Tue, 28 Jun 2022 01:38:37 UTC

(root@nebula) [(none)]> show hosts
+-------------+------+-----------+-----------+--------------+----------------------+------------------------+---------+
| Host        | Port | HTTP port | Status    | Leader count | Leader distribution  | Partition distribution | Version |
+-------------+------+-----------+-----------+--------------+----------------------+------------------------+---------+
| "storaged0" | 9779 | 19669     | "ONLINE"  | 3            | "basketballplayer:3" | "basketballplayer:3"   | "3.1.0" |
| "storaged1" | 9779 | 19669     | "ONLINE"  | 3            | "basketballplayer:3" | "basketballplayer:3"   | "3.1.0" |
| "storaged2" | 9779 | 19669     | "ONLINE"  | 4            | "basketballplayer:4" | "basketballplayer:4"   | "3.1.0" |
| "foo-bar"   | 9779 | 19669     | "OFFLINE" | 0            | "No valid partition" | "No valid partition"   |         |
+-------------+------+-----------+-----------+--------------+----------------------+------------------------+---------+
Got 4 rows (time spent 1311/2197 us)

Tue, 28 Jun 2022 01:38:42 UTC

感谢您的提醒,我提交了文档的改进也

https://github.com/vesoft-inc/nebula-docs-cn/pull/1910

“foo-bar:9779” ‘foo-bar:9779’ 发帖之前都试过 原来是这种格式

嗯嗯,是的,语法解析里 : 分割成两部分去做的,所以确实有点反直觉,文档这里应该给例子,另外用了 <ip> 也有些误导。

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。

浙ICP备20010487号