pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.4k stars 5.73k forks source link

The max value of `token-limit` should be more reasonable #53312

Closed djshow832 closed 1 month ago

djshow832 commented 1 month ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Set the token-limit to the max value as specified in the doc: https://docs.pingcap.com/tidb/stable/tidb-configuration-file#token-limit

Maximum Value (64-bit platforms): 18446744073709551615
Maximum Value (32-bit platforms): 4294967295

2. What did you expect to see? (Required)

TiDB can start normally.

3. What did you see instead (Required)

TiDB OOM

4. What is your TiDB version? (Required)

master