-
Notifications
You must be signed in to change notification settings - Fork 276
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
add table functions mo_configurations
#11792
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daviszhen
requested review from
zhangxu19830126,
volgariver6,
nnsgmsone,
XuPeng-SH,
triump2020,
m-schen,
ouyuanning,
aunjgr,
badboynt1,
LeftHandCold,
w-zr,
qingxinhome and
reusee
as code owners
September 15, 2023 13:08
zhangxu19830126
approved these changes
Sep 19, 2023
nnsgmsone
approved these changes
Sep 20, 2023
badboynt1
approved these changes
Sep 20, 2023
volgariver6
approved these changes
Sep 20, 2023
LeftHandCold
approved these changes
Sep 20, 2023
qingxinhome
approved these changes
Sep 20, 2023
reusee
approved these changes
Sep 20, 2023
m-schen
approved these changes
Sep 20, 2023
XuPeng-SH
approved these changes
Sep 20, 2023
heni02
approved these changes
Sep 20, 2023
aunjgr
approved these changes
Sep 20, 2023
triump2020
approved these changes
Sep 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What type of PR is this?
Which issue(s) this PR fixes:
issue #11499
issue #11711
What this PR does / why we need it:
讨论:https://github.com/matrixorigin/docs/blob/main/design/system_view.md#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E9%80%89%E9%A1%B9
修改的内容
1, cn,tn,log 增加了dump配置项的步骤。将config 转成一组 key-value构造成配置信息
ConfigData
.2,
Process
增加hakeeper接口。Hakeeper logservice.CNHAKeeperClient
3,与hakeeper的心跳增加发送
ConfigData
。未完成的部分:
1,proxy的配置项
实现思路:
通过hakeeper的心跳(cn,tn,log),将配置信息传给hakeeper。
目前设置了cn,tn,log的前50个心跳包中会带上配置信息。之后就不会再发送了。
SendCNHeartbeat
SendTNHeartbeat
SendLogHeartbeat
需要配置信息时,通过
GetClusterDetails
取集群信息。在集群信息中,存储各个节点的配置信息。
配置信息的准备。
在节点启动后,配置文件的内容(Content)就能拿到。
此时通过Content反序列化成配置对象(Config)。
对Config进行展开。flatten成一组key-value。并保存。
hakeeper发送心跳时,会将key-value给hakeeper。(避免重复发送)
hakeeper会存储这些心跳。
另一种方案。
将配置文件内容发送给hakeeper。
对
mo_configurations
查询时,拿到配置文件内容。再反序列化成Config。但是发现有循环依赖的问题。
对
mo_configurations
查询时,GetClusterDetails
取数据。会将配置信息填到结果中。