Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Too many simultaneous queries in clickhouse

Tags:

clickhouse

Our clickhouse server had several exceptions when running small queries under a peak load:

 DB::Exception: Too much simultaneous queries. Maximum: 100

Is there a setting to increase this number and what can the increase of this setting cause?

like image 975
alniks Avatar asked Mar 26 '17 18:03

alniks


1 Answers

<max_concurrent_queries>100</max_concurrent_queries>

Just read config.xml https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/config.xml#L237

Probably you want some proxy like haproxy in front of ClickHouse.

like image 121
f1yegor Avatar answered Sep 30 '22 08:09

f1yegor