|
| 1 | +# Usage: |
| 2 | +# databend-query -c databend_query_config_spec.toml |
| 3 | + |
| 4 | +[query] |
| 5 | +max_active_sessions = 256 |
| 6 | +shutdown_wait_timeout_ms = 5000 |
| 7 | + |
| 8 | +# For flight rpc. |
| 9 | +flight_api_address = "0.0.0.0:9091" |
| 10 | + |
| 11 | +# Databend Query http address. |
| 12 | +# For admin RESET API. |
| 13 | +admin_api_address = "0.0.0.0:8080" |
| 14 | + |
| 15 | +# Databend Query metrics RESET API. |
| 16 | +metric_api_address = "0.0.0.0:7070" |
| 17 | + |
| 18 | +# Databend Query MySQL Handler. |
| 19 | +mysql_handler_host = "0.0.0.0" |
| 20 | +mysql_handler_port = 3307 |
| 21 | + |
| 22 | +# Databend Query ClickHouse Handler. |
| 23 | +clickhouse_http_handler_host = "0.0.0.0" |
| 24 | +clickhouse_http_handler_port = 8124 |
| 25 | + |
| 26 | +# Databend Query HTTP Handler. |
| 27 | +http_handler_host = "0.0.0.0" |
| 28 | +http_handler_port = 8000 |
| 29 | + |
| 30 | +# Databend Query FlightSQL Handler. |
| 31 | +flight_sql_handler_host = "0.0.0.0" |
| 32 | +flight_sql_handler_port = 8900 |
| 33 | + |
| 34 | +tenant_id = "test_tenant" |
| 35 | +cluster_id = "test_cluster" |
| 36 | + |
| 37 | +table_engine_memory_enabled = true |
| 38 | +default_storage_format = 'parquet' |
| 39 | +default_compression = 'zstd' |
| 40 | + |
| 41 | +enable_udf_server = true |
| 42 | +udf_server_allow_list = ['http://0.0.0.0:8815'] |
| 43 | +udf_server_allow_insecure = true |
| 44 | + |
| 45 | +cloud_control_grpc_server_address = "http://0.0.0.0:50051" |
| 46 | + |
| 47 | +[[query.users]] |
| 48 | +name = "root" |
| 49 | +auth_type = "no_password" |
| 50 | + |
| 51 | +[[query.users]] |
| 52 | +name = "databend" |
| 53 | +auth_type = "double_sha1_password" |
| 54 | +# echo -n "databend" | sha1sum | cut -d' ' -f1 | xxd -r -p | sha1sum |
| 55 | +auth_string = "3081f32caef285c232d066033c89a78d88a6d8a5" |
| 56 | + |
| 57 | +# This for test |
| 58 | +[[query.udfs]] |
| 59 | +name = "ping" |
| 60 | +definition = "CREATE FUNCTION ping(STRING) RETURNS STRING LANGUAGE python HANDLER = 'ping' ADDRESS = 'http://0.0.0.0:8815'" |
| 61 | + |
| 62 | +[query.settings] |
| 63 | +aggregate_spilling_memory_ratio = 60 |
| 64 | +join_spilling_memory_ratio = 60 |
| 65 | + |
| 66 | +[log] |
| 67 | +level = "INFO" |
| 68 | + |
| 69 | +[log.file] |
| 70 | +format = "text" |
| 71 | +dir = "./.databend/logs_1" |
| 72 | + |
| 73 | +[meta] |
| 74 | +# It is a list of `grpc_api_advertise_host:<grpc-api-port>` of databend-meta config |
| 75 | +endpoints = ["meta:9191"] |
| 76 | +username = "root" |
| 77 | +password = "root" |
| 78 | +client_timeout_in_second = 60 |
| 79 | +auto_sync_interval = 60 |
| 80 | + |
| 81 | +# Storage config. |
| 82 | +[storage] |
| 83 | +type = "s3" |
| 84 | + |
| 85 | +[storage.s3] |
| 86 | +bucket = "databend" |
| 87 | +endpoint_url = "http://minio:9000" |
| 88 | +#endpoint_url = "http://localhost:9000" |
| 89 | +access_key_id = "minioadmin" |
| 90 | +secret_access_key = "minioadmin" |
| 91 | +enable_virtual_host_style = false |
| 92 | + |
| 93 | +# Cache config. |
| 94 | +[cache] |
| 95 | +data_cache_storage = "none" |
| 96 | + |
| 97 | +[cache.disk] |
| 98 | +# cache path |
| 99 | +path = "./.databend/_cache" |
| 100 | +# max bytes of cached data 20G |
| 101 | +max_bytes = 21474836480 |
| 102 | + |
| 103 | +[spill] |
| 104 | +spill_local_disk_path = "./.databend/temp/_query_spill" |
0 commit comments