Skip to content

Cluster group#420

Merged
rayzhang0603 merged 1 commit intoweibocom:devfrom
cocowh:cluster_group
Apr 15, 2025
Merged

Cluster group#420
rayzhang0603 merged 1 commit intoweibocom:devfrom
cocowh:cluster_group

Conversation

@cocowh
Copy link
Copy Markdown
Contributor

@cocowh cocowh commented Mar 19, 2025

No description provided.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 19, 2025

Codecov Report

❌ Patch coverage is 68.09211% with 97 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.85%. Comparing base (2379eb2) to head (fc207cb).
⚠️ Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
cluster/clusterGroup.go 63.39% 33 Missing and 8 partials ⚠️
agent.go 80.00% 11 Missing and 1 partial ⚠️
core/globalContext.go 77.08% 9 Missing and 2 partials ⚠️
core/motan.go 12.50% 7 Missing ⚠️
lb/weightRoundRobinLb.go 0.00% 4 Missing and 2 partials ⚠️
manageHandler.go 33.33% 4 Missing and 2 partials ⚠️
ha/backupRequestHA.go 0.00% 5 Missing ⚠️
ha/failoverHA.go 0.00% 4 Missing ⚠️
lb/consistentHashKeyLb.go 25.00% 2 Missing and 1 partial ⚠️
cluster/httpCluster.go 90.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #420      +/-   ##
==========================================
+ Coverage   50.75%   50.85%   +0.09%     
==========================================
  Files          83       86       +3     
  Lines       15821    16024     +203     
==========================================
+ Hits         8030     8149     +119     
- Misses       7185     7257      +72     
- Partials      606      618      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cocowh cocowh force-pushed the cluster_group branch 2 times, most recently from 91f7064 to 4b2f8dc Compare March 20, 2025 10:47
clusterGroup.clusterSelector = clusterSelector

// backupSwitcher
clusterGroup.backupSwitcher = motan.GetSwitcherManager().GetOrRegister("feature.motan.backup.cluster.enable", true)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

开关名使用包常量

// first check file config and framework set value
groups := serviceURL.GetParam(SandboxGroupsKey, GetDefaultSandboxGroups())
// second check env config
if groups == "" && len(changeGroupsConfig) > 0 {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

环境变量优先级需要高于url配置的优先级

return envMap
}

func (c *Context) parseServiceGroups(serviceURL *URL, serverMode string, changeGroupsConfig map[*regexp.Regexp]string) string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

@cocowh cocowh force-pushed the cluster_group branch 3 times, most recently from 205ec44 to 21ab029 Compare March 26, 2025 03:08
@cocowh cocowh force-pushed the cluster_group branch 2 times, most recently from 747c396 to 3153ee8 Compare April 1, 2025 10:18
cluster group

cluster group

cluster group

cluster group

code review

code review

bugfix

bugfix

bugfix

unit test

bugfix

bugfix
@rayzhang0603 rayzhang0603 merged commit 71178ab into weibocom:dev Apr 15, 2025
3 of 7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants