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

rule checker consumes too much cpu in big cluster #9011

Open
lhy1024 opened this issue Jan 20, 2025 · 0 comments
Open

rule checker consumes too much cpu in big cluster #9011

lhy1024 opened this issue Jan 20, 2025 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@lhy1024
Copy link
Contributor

lhy1024 commented Jan 20, 2025

Enhancement Task

In some big clusters, rule-checker consumes too much cpu

cluster1:
Image

cluster2:
Image

There are 107 stores and 180w regions in cluster2, and simple rules.

[
  {
    "group_id": "pd",
    "id": "dc1-f",
    "start_key": "",
    "end_key": "",
    "role": "follower",
    "is_witness": false,
    "count": 2,
    "label_constraints": [
      {
        "key": "dc",
        "op": "in",
        "values": [
          "dc1"
        ]
      }
    ],
    "location_labels": [
      "dc",
      "host"
    ],
    "create_timestamp": 1736992391
  },
  {
    "group_id": "pd",
    "id": "dc1-l",
    "start_key": "",
    "end_key": "",
    "role": "learner",
    "is_witness": false,
    "count": 1,
    "label_constraints": [
      {
        "key": "dc",
        "op": "in",
        "values": [
          "dc1"
        ]
      }
    ],
    "location_labels": [
      "dc",
      "host"
    ],
    "create_timestamp": 1736992391
  },
  {
    "group_id": "pd",
    "id": "dc2",
    "start_key": "",
    "end_key": "",
    "role": "voter",
    "is_witness": false,
    "count": 3,
    "label_constraints": [
      {
        "key": "dc",
        "op": "in",
        "values": [
          "dc2"
        ]
      }
    ],
    "location_labels": [
      "dc",
      "host"
    ],
    "create_timestamp": 1736992391
  }
]
@lhy1024 lhy1024 added the type/enhancement The issue or PR belongs to an enhancement. label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant