Skip to content

Commit e44d212

Browse files
authored
chore: max_running_queries from 8 to 0, disable the max running queries (#15013)
1 parent 7171319 commit e44d212

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/query/config/src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const CATALOG_HIVE: &str = "hive";
8787
/// Only adding new fields is allowed.
8888
/// This same rules should be applied to all fields of this struct.
8989
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Parser)]
90-
#[clap(name = "databend-query", about, version = &**DATABEND_COMMIT_VERSION, author)]
90+
#[clap(name = "databend-query", about, version = & * * DATABEND_COMMIT_VERSION, author)]
9191
#[serde(default)]
9292
pub struct Config {
9393
/// Run a command and quit
@@ -1399,14 +1399,14 @@ pub struct QueryConfig {
13991399
#[clap(long, value_name = "VALUE", default_value = "256")]
14001400
pub max_active_sessions: u64,
14011401

1402-
#[clap(long, value_name = "VALUE", default_value = "8")]
1402+
#[clap(long, value_name = "VALUE", default_value = "0")]
14031403
pub max_running_queries: u64,
14041404

14051405
/// The max total memory in bytes that can be used by this process.
14061406
#[clap(long, value_name = "VALUE", default_value = "0")]
14071407
pub max_server_memory_usage: u64,
14081408

1409-
#[clap(long, value_name = "VALUE",value_parser = clap::value_parser!(bool), default_value = "false")]
1409+
#[clap(long, value_name = "VALUE", value_parser = clap::value_parser!(bool), default_value = "false")]
14101410
pub max_memory_limit_enabled: bool,
14111411

14121412
#[deprecated(note = "clickhouse tcp support is deprecated")]
@@ -1490,7 +1490,7 @@ pub struct QueryConfig {
14901490
pub rpc_client_timeout_secs: u64,
14911491

14921492
/// Table engine memory enabled
1493-
#[clap(long, value_name = "VALUE",value_parser = clap::value_parser!(bool), default_value = "true")]
1493+
#[clap(long, value_name = "VALUE", value_parser = clap::value_parser!(bool), default_value = "true")]
14941494
pub table_engine_memory_enabled: bool,
14951495

14961496
#[clap(long, value_name = "VALUE", default_value = "5000")]

src/query/config/src/inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl Default for QueryConfig {
247247
mysql_tls_server_cert: "".to_string(),
248248
mysql_tls_server_key: "".to_string(),
249249
max_active_sessions: 256,
250-
max_running_queries: 8,
250+
max_running_queries: 0,
251251
max_server_memory_usage: 0,
252252
max_memory_limit_enabled: false,
253253
clickhouse_http_handler_host: "127.0.0.1".to_string(),

src/query/service/tests/it/storages/testdata/configs_table_basic.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ DB.Table: 'system'.'configs', Table: configs-table_id:1, ver:0, Engine: SystemCo
9999
| 'query' | 'max_active_sessions' | '256' | '' |
100100
| 'query' | 'max_memory_limit_enabled' | 'false' | '' |
101101
| 'query' | 'max_query_log_size' | '10000' | '' |
102-
| 'query' | 'max_running_queries' | '8' | '' |
102+
| 'query' | 'max_running_queries' | '0' | '' |
103103
| 'query' | 'max_server_memory_usage' | '0' | '' |
104104
| 'query' | 'max_storage_io_requests' | 'null' | '' |
105105
| 'query' | 'metric_api_address' | '127.0.0.1:7070' | '' |

0 commit comments

Comments
 (0)