Coverage Report

Created: 2025-04-14 12:06

/root/doris/be/src/cloud/config.h
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#pragma once
19
20
#include "common/config.h"
21
22
namespace doris::config {
23
#include "common/compile_check_begin.h"
24
25
DECLARE_String(deploy_mode);
26
// deprecated do not configure directly
27
DECLARE_mString(cloud_unique_id);
28
29
9.27k
static inline bool is_cloud_mode() {
30
9.27k
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
9.27k
}
Unexecuted instantiation: task_worker_pool.cpp:_ZN5doris6configL13is_cloud_modeEv
config.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
3
static inline bool is_cloud_mode() {
30
3
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
3
}
Unexecuted instantiation: cumulative_compaction_time_series_policy.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: rowset_factory.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: page_io.cpp:_ZN5doris6configL13is_cloud_modeEv
segment.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
3
static inline bool is_cloud_mode() {
30
3
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
3
}
Unexecuted instantiation: segment_writer.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: vertical_segment_writer.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: schema_change.cpp:_ZN5doris6configL13is_cloud_modeEv
tablet_meta.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
809
static inline bool is_cloud_mode() {
30
809
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
809
}
Unexecuted instantiation: exec_env_init.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: group_commit_mgr.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: load_channel.cpp:_ZN5doris6configL13is_cloud_modeEv
load_stream.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
1
static inline bool is_cloud_mode() {
30
1
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
1
}
Unexecuted instantiation: load_stream_writer.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: runtime_state.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: http_service.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: rowid_fetcher.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: point_query_executor.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: compaction_score_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: delete_bitmap_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: http_stream.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: load_channel_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: load_stream_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: meta_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: stream_load.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: tablets_info_action.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: olap_scanner.cpp:_ZN5doris6configL13is_cloud_modeEv
block_reader.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
578
static inline bool is_cloud_mode() {
30
578
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
578
}
vertical_block_reader.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
7.87k
static inline bool is_cloud_mode() {
30
7.87k
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
7.87k
}
vertical_merge_iterator.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
29
6
static inline bool is_cloud_mode() {
30
6
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
6
}
Unexecuted instantiation: olap_scan_operator.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: parallel_scanner_builder.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: vtablet_writer.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: schema_rowsets_scanner.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: pipeline_fragment_context.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_cumulative_compaction_policy.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_meta_mgr.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_storage_engine.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_compaction_stop_token.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_full_compaction.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_cumulative_compaction.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_base_compaction.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_stream_load_executor.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_tablet_hotspot.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_tablet_mgr.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_txn_delete_bitmap_cache.cpp:_ZN5doris6configL13is_cloud_modeEv
32
33
// Set the endpoint of meta service.
34
//
35
// If meta services are deployed behind a load balancer, set this config to "host:port" of the load balancer.
36
// Here is a set of configs to configure the connection behaviors:
37
// - meta_service_connection_pooled: distribute the long connections to different RS of the VIP.
38
// - meta_service_connection_age_base_seconds: expire the connection after a random time during [base, 2*base],
39
//      so that the BE has a chance to connect to a new RS. (When you add a new RS, the BE will connect to it)
40
// - meta_service_idle_connection_timeout_ms: rebuild the idle connections after the timeout exceeds. Some LB
41
// vendors will reset the connection if it is idle for a long time.
42
//
43
// If you want to access a group of meta services directly, set the addresses of meta services to this config,
44
// separated by a comma, like "host:port,host:port,host:port", then BE will choose a server to connect in randomly.
45
// In this mode, The config meta_service_connection_pooled is still useful, but the other two configs will be ignored.
46
DECLARE_mString(meta_service_endpoint);
47
// Whether check config::meta_service_endpoint is identical to the ms endpoint from FE master heartbeat
48
// This may help in some cases that we intend to change the config only FE side or BE side
49
DECLARE_mBool(enable_meta_service_endpoint_consistency_check);
50
// Set the underlying connection type to pooled.
51
DECLARE_Bool(meta_service_connection_pooled);
52
DECLARE_mInt64(meta_service_connection_pool_size);
53
// A connection will expire after a random time during [base, 2*base], so that the BE
54
// has a chance to connect to a new RS. Set zero to disable it.
55
//
56
// Only works when meta_service_endpoint is set to a single host.
57
DECLARE_mInt32(meta_service_connection_age_base_seconds);
58
// Rebuild the idle connections after the timeout exceeds. Set zero to disable it.
59
//
60
// Only works when meta_service_endpoint is set to a single host.
61
DECLARE_mInt32(meta_service_idle_connection_timeout_ms);
62
DECLARE_mInt32(meta_service_rpc_timeout_ms);
63
DECLARE_mInt32(meta_service_rpc_retry_times);
64
// default brpc timeout
65
DECLARE_mInt32(meta_service_brpc_timeout_ms);
66
67
// CloudTabletMgr config
68
DECLARE_Int64(tablet_cache_capacity);
69
DECLARE_Int64(tablet_cache_shards);
70
DECLARE_mInt32(tablet_sync_interval_s);
71
72
// Cloud compaction config
73
DECLARE_mInt64(min_compaction_failure_interval_ms);
74
DECLARE_mBool(enable_new_tablet_do_compaction);
75
// For cloud read/write separate mode
76
DECLARE_mInt64(base_compaction_freeze_interval_s);
77
DECLARE_mInt64(cu_compaction_freeze_interval_s);
78
DECLARE_mInt64(cumu_compaction_interval_s);
79
80
DECLARE_mInt32(compaction_timeout_seconds);
81
DECLARE_mInt32(lease_compaction_interval_seconds);
82
DECLARE_mBool(enable_parallel_cumu_compaction);
83
DECLARE_mDouble(base_compaction_thread_num_factor);
84
DECLARE_mDouble(cumu_compaction_thread_num_factor);
85
DECLARE_mInt32(check_auto_compaction_interval_seconds);
86
DECLARE_mInt32(max_base_compaction_task_num_per_disk);
87
DECLARE_mBool(prioritize_query_perf_in_compaction);
88
DECLARE_mInt32(compaction_max_rowset_count);
89
90
// CloudStorageEngine config
91
DECLARE_mInt32(refresh_s3_info_interval_s);
92
DECLARE_mInt32(vacuum_stale_rowsets_interval_s);
93
DECLARE_mInt32(schedule_sync_tablets_interval_s);
94
95
// Cloud mow
96
DECLARE_mInt32(mow_stream_load_commit_retry_times);
97
98
DECLARE_mBool(save_load_error_log_to_s3);
99
100
// the theads which sync the datas which loaded in other clusters
101
DECLARE_mInt32(sync_load_for_tablets_thread);
102
103
DECLARE_mInt32(delete_bitmap_lock_expiration_seconds);
104
105
DECLARE_mInt32(get_delete_bitmap_lock_max_retry_times);
106
107
// enable large txn lazy commit in meta-service `commit_txn`
108
DECLARE_mBool(enable_cloud_txn_lazy_commit);
109
110
DECLARE_mInt32(remove_expired_tablet_txn_info_interval_seconds);
111
112
DECLARE_mInt32(tablet_txn_info_min_expired_seconds);
113
114
DECLARE_mBool(enable_use_cloud_unique_id_from_fe);
115
116
DECLARE_Bool(enable_cloud_tablet_report);
117
118
DECLARE_mInt32(delete_bitmap_rpc_retry_times);
119
120
DECLARE_mInt64(meta_service_rpc_reconnect_interval_ms);
121
122
#include "common/compile_check_end.h"
123
} // namespace doris::config