Skip to content

Commit b74d676

Browse files
committed
[opt](cloud) Simplify config file of meta-service
1 parent efc2ec5 commit b74d676

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

cloud/conf/doris_cloud.conf

+5-20
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,18 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# // meta_service
1918
brpc_listen_port = 5000
20-
brpc_num_threads = -1
21-
brpc_idle_timeout_sec = 30
2219
fdb_cluster = xxx:yyy@127.0.0.1:4500
23-
fdb_cluster_file_path = ./conf/fdb.cluster
20+
# http request to meta-service needs this token for auth
2421
http_token = greedisgood9999
22+
# use CIDR to mask if there are multiple NICs
23+
# priority_networks = 192.168.0.1/24
2524

26-
# // doris txn config
27-
label_keep_max_second = 259200
28-
expired_txn_scan_key_nums = 1000
29-
30-
# // logging
25+
# logging
3126
log_dir = ./log/
32-
# info warn error
27+
# candidates: info warn error
3328
log_level = info
3429
log_size_mb = 1024
3530
log_filenum_quota = 10
36-
log_immediate_flush = false
3731
# log_verbose_modules = *
3832

39-
# // recycler config
40-
recycle_interval_seconds = 3600
41-
retention_seconds = 259200
42-
recycle_concurrency = 16
43-
# recycle_whitelist =
44-
# recycle_blacklist =
45-
46-
# //max stage num
47-
max_num_stages = 40

cloud/src/common/config.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
namespace doris::cloud::config {
2323

2424
CONF_Int32(brpc_listen_port, "5000");
25-
CONF_Int32(brpc_num_threads, "-1");
25+
CONF_Int32(brpc_num_threads, "64");
26+
// connections without data transmission for so many seconds will be closed
2627
// Set -1 to disable it.
2728
CONF_Int32(brpc_idle_timeout_sec, "-1");
2829
CONF_String(hostname, "");
@@ -65,10 +66,10 @@ CONF_mInt64(dropped_partition_retention_seconds, "10800"); // 3h
6566
CONF_Strings(recycle_whitelist, ""); // Comma seprated list
6667
// These instances will not be recycled, only effective when whitelist is empty.
6768
CONF_Strings(recycle_blacklist, ""); // Comma seprated list
68-
CONF_mInt32(instance_recycler_worker_pool_size, "8");
69+
CONF_mInt32(instance_recycler_worker_pool_size, "32");
6970
CONF_Bool(enable_checker, "false");
7071
// The parallelism for parallel recycle operation
71-
CONF_Int32(recycle_pool_parallelism, "10");
72+
CONF_Int32(recycle_pool_parallelism, "40");
7273
// Currently only used for recycler test
7374
CONF_Bool(enable_inverted_check, "false");
7475
// interval for scanning instances to do checks and inspections

0 commit comments

Comments
 (0)