Skip to content

Add TiDB Resource Controls #1

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

Merged
merged 26 commits into from
Jul 19, 2024
Merged

Add TiDB Resource Controls #1

merged 26 commits into from
Jul 19, 2024

Conversation

zph
Copy link
Owner

@zph zph commented Jul 4, 2024

TODO

  • Setup automated testing for these changes
  • Offer upstream to petoju repo
  • Optionally build in lookups to see if current allocation is within limits of total predicted cluster capacity
mysql> CALIBRATE RESOURCE START_TIME '2024-07-09 19:10:21' DURATION '30m';
+--------+
| QUOTA  |
+--------+
| 160194 |
+--------+
1 row in set (0.24 sec)

That's approx NOW() - DURATION

@zph zph force-pushed the zh-resource-controls branch from 40deb86 to f0c9384 Compare July 4, 2024 22:50
@zph zph marked this pull request as ready for review July 5, 2024 20:24
@zph zph merged commit fbf0ca8 into r3.0.62 Jul 19, 2024
16 checks passed
@zph zph deleted the zh-resource-controls branch July 19, 2024 01:32
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.

1 participant