haproxy 代理tidb 链接数到1000后,无法登录

max_connections 看上去是设置成10000了,

MySQL [(none)]> show variables like ‘%max_connections%’;
±----------------±------+
| Variable_name | Value |
±----------------±------+
| max_connections | 10000 |
±----------------±------+
1 row in set (0.00 sec)