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

Background query run in selected CN in 1.1 #14881

Merged
merged 2 commits into from Mar 13, 2024

Conversation

xzxiong
Copy link
Contributor

@xzxiong xzxiong commented Mar 11, 2024

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #13470

What this PR does / why we need it:

cherry-pick from #14382
changes

  1. 添加一个配置项 observability.labelSelector as map[string]string
  2. runtime 中添加 BackgroundCNSelector
  3. 支持通过 LabelSelector 对CN进行过滤,目前该CN用于 task-service,mo-logger
  4. 对 mo_logger 添加默认刷新CN连接的逻辑,默认周期:1小时

config example:

+[observability.labelSelector]
+key1 = "value1"
+key2 = "value2"

changes
1. 添加一个配置项 `observability.labelSelector` as `map[string]string`
2. runtime 中添加 `BackgroundCNSelector`
3. 支持通过 LabelSelector 对CN进行过滤,目前该CN用于 task-service,mo-logger
4. 对 mo_logger 添加默认刷新CN连接的逻辑,默认周期:1小时

config example:
```diff
+[observability.labelSelector]
+key1 = "value1"
+key2 = "value2"
```

Approved by: @daviszhen, @volgariver6, @zhangxu19830126
@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Mar 11, 2024
@mergify mergify bot added the kind/feature label Mar 11, 2024
@mergify mergify bot merged commit a10ed29 into matrixorigin:1.1-dev Mar 13, 2024
18 checks passed
@xzxiong xzxiong deleted the 1.1-mo_logger_cn branch March 13, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature size/S Denotes a PR that changes [10,99] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants