[improvement](FQDN) Support existing cluster upgrade #17659
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Issue Number: close #xxx
旧集群启用FQDN
如果需要为旧集群启用FQDN,则需要将系统升级到包含本commit的版本.
FE启用FQDN
为了让FE启用FQDN,需要先操作follower、observer节点,最后再操作master节点。
修改follower FE、observer FE节点
逐一对follower、observer节点进行以下操作:
a.
sh bin/stop_fe.sha.
show frontends;a.
ALTER SYSTEM MODIFY FRONTEND "<fe_ip>:<edit_log_port>" HOSTNAME "<fe_hostname>";a.
enable_fqdn_mode = truea.
sh bin/start_fe.sha.
show frontends;修改master FE节点
当所有的follower、observer节点都修改完毕后,可以开启修改master fe节点。
a.
sh bin/stop_fe.sha.
show frontends;a.
ALTER SYSTEM MODIFY FRONTEND "<fe_ip>:<edit_log_port>" HOSTNAME "<fe_hostname>";a.
enable_fqdn_mode = truea.
sh bin/start_fe.sha.
show frontends;Backend节点启用FQDN
BE节点启用FQDN只需要通过MYSQL执行以下命令,不需要对BE执行重启操作。
ALTER SYSTEM MODIFY BACKEND "<backend_ip>:<backend_port>" HOSTNAME "<be_hostname>";Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...