Coverage Report

Created: 2025-03-10 18:45

/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.26k
static inline bool is_cloud_mode() {
30
9.26k
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
9.26k
}
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
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
806
static inline bool is_cloud_mode() {
30
806
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
31
806
}
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_meta_mgr.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: cloud_storage_engine.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_cumulative_compaction_policy.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
// Set the underlying connection type to pooled.
48
DECLARE_Bool(meta_service_connection_pooled);
49
DECLARE_mInt64(meta_service_connection_pool_size);
50
// A connection will expire after a random time during [base, 2*base], so that the BE
51
// has a chance to connect to a new RS. Set zero to disable it.
52
//
53
// Only works when meta_service_endpoint is set to a single host.
54
DECLARE_mInt32(meta_service_connection_age_base_seconds);
55
// Rebuild the idle connections after the timeout exceeds. Set zero to disable it.
56
//
57
// Only works when meta_service_endpoint is set to a single host.
58
DECLARE_mInt32(meta_service_idle_connection_timeout_ms);
59
DECLARE_mInt32(meta_service_rpc_timeout_ms);
60
DECLARE_mInt32(meta_service_rpc_retry_times);
61
// default brpc timeout
62
DECLARE_mInt32(meta_service_brpc_timeout_ms);
63
64
// CloudTabletMgr config
65
DECLARE_Int64(tablet_cache_capacity);
66
DECLARE_Int64(tablet_cache_shards);
67
DECLARE_mInt32(tablet_sync_interval_s);
68
69
// Cloud compaction config
70
DECLARE_mInt64(min_compaction_failure_interval_ms);
71
DECLARE_mBool(enable_new_tablet_do_compaction);
72
// For cloud read/write separate mode
73
DECLARE_mInt64(base_compaction_freeze_interval_s);
74
DECLARE_mInt64(cu_compaction_freeze_interval_s);
75
DECLARE_mInt64(cumu_compaction_interval_s);
76
77
DECLARE_mInt32(compaction_timeout_seconds);
78
DECLARE_mInt32(lease_compaction_interval_seconds);
79
DECLARE_mInt64(base_compaction_interval_seconds_since_last_operation);
80
DECLARE_mBool(enable_parallel_cumu_compaction);
81
DECLARE_mDouble(base_compaction_thread_num_factor);
82
DECLARE_mDouble(cumu_compaction_thread_num_factor);
83
DECLARE_mInt32(check_auto_compaction_interval_seconds);
84
DECLARE_mInt32(max_base_compaction_task_num_per_disk);
85
DECLARE_mBool(prioritize_query_perf_in_compaction);
86
DECLARE_mInt32(compaction_max_rowset_count);
87
88
// CloudStorageEngine config
89
DECLARE_mInt32(refresh_s3_info_interval_s);
90
DECLARE_mInt32(vacuum_stale_rowsets_interval_s);
91
DECLARE_mInt32(schedule_sync_tablets_interval_s);
92
93
// Cloud mow
94
DECLARE_mInt32(mow_stream_load_commit_retry_times);
95
96
DECLARE_mBool(save_load_error_log_to_s3);
97
98
// the theads which sync the datas which loaded in other clusters
99
DECLARE_mInt32(sync_load_for_tablets_thread);
100
101
DECLARE_mInt32(delete_bitmap_lock_expiration_seconds);
102
103
// enable large txn lazy commit in meta-service `commit_txn`
104
DECLARE_mBool(enable_cloud_txn_lazy_commit);
105
106
DECLARE_mInt32(remove_expired_tablet_txn_info_interval_seconds);
107
108
DECLARE_mInt32(tablet_txn_info_min_expired_seconds);
109
110
DECLARE_mBool(enable_use_cloud_unique_id_from_fe);
111
112
DECLARE_Bool(enable_cloud_tablet_report);
113
114
DECLARE_mInt32(delete_bitmap_rpc_retry_times);
115
116
DECLARE_mInt64(meta_service_rpc_reconnect_interval_ms);
117
118
#include "common/compile_check_end.h"
119
} // namespace doris::config