Overview of Quota Types
The three quota types are enforced in hierarchical order, with the most restrictive (lowest QPS) quota taking precedence1. Table-Level Quotas
Table quotas limit QPS for specific tables and have the highest precedence in the hierarchy. This can be specified in the table config as shown in this example:2. Database-Level Quotas
Database quotas apply to all tables within a specific database and are checked before table quotas. This is typically set in the cluster config as shown below:3. Application-Level Quotas
Application quotas limit QPS based on the application identifier passed in query options. This can be set in the cluster config as shown below:Example Scenarios
Table Quota | Database Quota | Application Quota | Effective Limit | Reason |
---|---|---|---|---|
10 QPS | 25 QPS | 50 QPS | 10 QPS | Table quota is lowest |
30 QPS | 15 QPS | 50 QPS | 15 QPS | Database quota is lowest |
30 QPS | 25 QPS | 5 QPS | 5 QPS | Application quota is lowest |
Not set | 25 QPS | 50 QPS | 25 QPS | Database quota applies |