Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doris fqdn #15

Open
dyrnq opened this issue Nov 15, 2024 · 2 comments
Open

doris fqdn #15

dyrnq opened this issue Nov 15, 2024 · 2 comments

Comments

@dyrnq
Copy link
Owner

dyrnq commented Nov 15, 2024

fe.conf 文件 设置 enable_fqdn_mode = true
集群中的所有机器都必须配置有主机名
必须在集群中每台机器的 /etc/hosts 文件中指定集群中其他机器对应的 IP 地址和 FQDN
/etc/hosts 文件中不能有重复的 IP 地址
@dyrnq
Copy link
Owner Author

dyrnq commented Nov 15, 2024

Doris 从 2.0(包含) 版本引入的FQDN的能力,来解决之前的 IP地址不能变更的问题。
Doris之前是不支持主机名称,只能使用 IP 地址,在实际使用中,有的用户因为网络重构或者设备迁移产生了IP地址变更,这个就会引发Doris集群数据不可用。如果我们能通过主机名称,那么就可以避免因为IP地址变更引发的集群不可用数据丢失的问题。

@dyrnq
Copy link
Owner Author

dyrnq commented Nov 15, 2024

Doris 支持 FQDN 之后,各节点之间通信完全基于 FQDN。添加各类节点时应直接指定 FQDN,例如添加 BE 节点的命令为ALTER SYSTEM ADD BACKEND "be_host:heartbeat_service_port",

"be_host" 此前是 BE 节点的 IP,启动 FQDN 后,be_host 应指定 BE 节点的 FQDN。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant