You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Create 1 million databases with 2 tables per database.
Create 2 users for each schema and grant privileges on the schema to the users.
From the monitoring of TiDB, it can be observed that the QPS for creating users and granting permissions is continuously declining. When the number of users reaches 200,000, the QPS is nearly 1.
TiDB maintains a full set of user and permission information in memory. When there are changes to users or permissions (triggered by statements such as create/alter user, grant, etc.), TiDB calls the NotifyUpdatePrivilege function which loads the full user and permission information from TiKV to refresh the cache. As the user information increases, this operation will become increasingly time-consuming and resource-intensive. Actual tests show CPU resource consumption at over 80%, and Golang GC causes memory fluctuations exceeding 10GB.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
From the monitoring of TiDB, it can be observed that the QPS for creating users and granting permissions is continuously declining. When the number of users reaches 200,000, the QPS is nearly 1.
TiDB maintains a full set of user and permission information in memory. When there are changes to users or permissions (triggered by statements such as create/alter user, grant, etc.), TiDB calls the NotifyUpdatePrivilege function which loads the full user and permission information from TiKV to refresh the cache. As the user information increases, this operation will become increasingly time-consuming and resource-intensive. Actual tests show CPU resource consumption at over 80%, and Golang GC causes memory fluctuations exceeding 10GB.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: