-
Notifications
You must be signed in to change notification settings - Fork 2k
[Enhancement] change a few metrics fe leader awareness #59883
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
Conversation
fe/fe-core/src/main/java/com/starrocks/metric/JsonMetricVisitor.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/com/starrocks/metric/LeaderAwareGaugeMetric.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/test/java/com/starrocks/metric/LeaderAwareGaugeMetricTest.java
Show resolved
Hide resolved
ed35ddb
to
d6a2984
Compare
d6a2984
to
4b61474
Compare
@@ -126,6 +126,9 @@ public class FeConstants { | |||
public static final String DOCUMENT_ALTER_ROUTINE_LOAD = | |||
"https://docs.starrocks.io/docs/sql-reference/sql-statements/data-manipulation/ALTER_ROUTINE_LOAD"; | |||
|
|||
// Historic reason naming as "is_master" rather than "is_leader" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't meet the requirement of the customers. They want to get the consistent metrics between FE leader and FE followers.
- In current situation, I think we should forward to the leader to get the metrics.
- In final, we should sync the metrics between FE leader and followers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a matter of fact how the system is designed, not how the system is required by the customer.
4b61474
to
a3cc92b
Compare
* add label `is_master={"true"|"false"}` for those metrics that distinguish between leader and follower Signed-off-by: Kevin Cai <kevin.cai@celerdata.com>
a3cc92b
to
d08ca96
Compare
|
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 20 / 20 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.5 |
@Mergifyio backport branch-3.4 |
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com> (cherry picked from commit bf269c8)
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com> (cherry picked from commit bf269c8)
…) (#59964) Signed-off-by: Kevin Cai <kevin.cai@celerdata.com> Co-authored-by: Kevin Cai <caixiaohua@starrocks.com>
…) (#59965) Signed-off-by: Kevin Cai <kevin.cai@celerdata.com> Co-authored-by: Kevin Cai <caixiaohua@starrocks.com>
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com> Signed-off-by: AntiTopQuark <AntiTopQuark1350@outlook.com>
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com>
is_leader={"true"|"false"}
for those metrics that distinguish between leader and followerWhy I'm doing:
What I'm doing:
Fixes #59887
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: