Patrol Report Alarm Resolution

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 巡警报告告警解决

| username: bryanz

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.2
[Reproduction Path] Replica partition alarm leader-score-balance and region-score-balance alarms
[Encountered Problem: Problem Phenomenon and Impact] Patrol report alarm resolved
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]

| username: 像风一样的男子 | Original post link

Directly ignore the warning.

| username: bryanz | Original post link

Feeling anxious, the boss demands that this alert be resolved :pleading_face:

| username: 像风一样的男子 | Original post link

Check the PD monitoring to see why the leader-score-balance is 0.

| username: 像风一样的男子 | Original post link

Or take a look at the table SELECT * FROM METRICS_SCHEMA.pd_scheduler_store_status where type =“leader_score”. This value shouldn’t be this low.

| username: bryanz | Original post link

The result is all zeros. Currently, the business has not been connected yet.
Is it related to the lack of connections?

| username: 像风一样的男子 | Original post link

No data… Perform some stress testing to generate data, and you’ll get scores. With scores, such alerts will be gone.

| username: bryanz | Original post link

No, I previously inserted data, but it still doesn’t work.

| username: dba远航 | Original post link

It feels like the REGIN is unbalanced.

| username: bryanz | Original post link

How do you solve this, isn’t it automatically assigned?

| username: oceanzhang | Original post link

Warning doesn’t matter.

| username: 像风一样的男子 | Original post link

The data is too sparse, so there is basically no rating.

| username: bryanz | Original post link

Okay, I’ll keep an eye on the data volume and alerts.

| username: tidb狂热爱好者 | Original post link

Don’t worry about it.

| username: forever | Original post link

Try using Navicat to create some data points.

| username: 小龙虾爱大龙虾 | Original post link

Don’t worry about this. When the data volume is small, the region distribution doesn’t matter. When the data volume increases, it will naturally balance out.

| username: andone | Original post link

Batch import some data.

| username: dba远航 | Original post link

No results yet?

| username: 随缘天空 | Original post link

Warnings don’t have much impact. They will resolve themselves over time.

| username: ShawnYan | Original post link

It’s a good opportunity to do more testing with the business. Have you done a stress test with tiup bench?