Coverage Report

Created: 2024-11-20 21:05

/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
24
DECLARE_String(deploy_mode);
25
// deprecated do not configure directly
26
DECLARE_mString(cloud_unique_id);
27
28
8.43k
static inline bool is_cloud_mode() {
29
8.43k
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
8.43k
}
Unexecuted instantiation: task_worker_pool.cpp:_ZN5doris6configL13is_cloud_modeEv
config.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
28
3
static inline bool is_cloud_mode() {
29
3
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
3
}
Unexecuted instantiation: rowset_factory.cpp:_ZN5doris6configL13is_cloud_modeEv
segment.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
28
3
static inline bool is_cloud_mode() {
29
3
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
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
28
180
static inline bool is_cloud_mode() {
29
180
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
180
}
Unexecuted instantiation: exec_env_init.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: fragment_mgr.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
28
1
static inline bool is_cloud_mode() {
29
1
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
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: 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
block_reader.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
28
578
static inline bool is_cloud_mode() {
29
578
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
578
}
vertical_block_reader.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
28
7.66k
static inline bool is_cloud_mode() {
29
7.66k
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
7.66k
}
vertical_merge_iterator.cpp:_ZN5doris6configL13is_cloud_modeEv
Line
Count
Source
28
6
static inline bool is_cloud_mode() {
29
6
    return deploy_mode == "cloud" || !cloud_unique_id.empty();
30
6
}
Unexecuted instantiation: vtablet_writer.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: olap_scan_operator.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: parallel_scanner_builder.cpp:_ZN5doris6configL13is_cloud_modeEv
Unexecuted instantiation: new_olap_scanner.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_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_full_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
31
32
// Set the endpoint of meta service.
33
//
34
// If meta services are deployed behind a load balancer, set this config to "host:port" of the load balancer.
35
// Here is a set of configs to configure the connection behaviors:
36
// - meta_service_connection_pooled: distribute the long connections to different RS of the VIP.
37
// - meta_service_connection_age_base_minutes: expire the connection after a random time during [base, 2*base],
38
//      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)
39
// - meta_service_idle_connection_timeout_ms: rebuild the idle connections after the timeout exceeds. Some LB
40
// vendors will reset the connection if it is idle for a long time.
41
//
42
// If you want to access a group of meta services directly, set the addresses of meta services to this config,
43
// separated by a comma, like "host:port,host:port,host:port", then BE will choose a server to connect in randomly.
44
// In this mode, The config meta_service_connection_pooled is still useful, but the other two configs will be ignored.
45
DECLARE_mString(meta_service_endpoint);
46
// Set the underlying connection type to pooled.
47
DECLARE_Bool(meta_service_connection_pooled);
48
DECLARE_mInt64(meta_service_connection_pool_size);
49
// A connection will expire after a random time during [base, 2*base], so that the BE
50
// has a chance to connect to a new RS. Set zero to disable it.
51
//
52
// Only works when meta_service_endpoint is set to a single host.
53
DECLARE_mInt32(meta_service_connection_age_base_minutes);
54
// Rebuild the idle connections after the timeout exceeds. Set zero to disable it.
55
//
56
// Only works when meta_service_endpoint is set to a single host.
57
DECLARE_mInt32(meta_service_idle_connection_timeout_ms);
58
DECLARE_mInt32(meta_service_rpc_timeout_ms);
59
DECLARE_mInt32(meta_service_rpc_retry_times);
60
// default brpc timeout
61
DECLARE_mInt32(meta_service_brpc_timeout_ms);
62
63
// CloudTabletMgr config
64
DECLARE_Int64(tablet_cache_capacity);
65
DECLARE_Int64(tablet_cache_shards);
66
DECLARE_mInt32(tablet_sync_interval_s);
67
68
// Cloud compaction config
69
DECLARE_mInt64(min_compaction_failure_interval_ms);
70
DECLARE_mBool(enable_new_tablet_do_compaction);
71
// For cloud read/write separate mode
72
DECLARE_mInt64(base_compaction_freeze_interval_s);
73
DECLARE_mInt64(cu_compaction_freeze_interval_s);
74
DECLARE_mInt64(cumu_compaction_interval_s);
75
76
DECLARE_mInt32(compaction_timeout_seconds);
77
DECLARE_mInt32(lease_compaction_interval_seconds);
78
DECLARE_mInt64(base_compaction_interval_seconds_since_last_operation);
79
DECLARE_mBool(enable_parallel_cumu_compaction);
80
DECLARE_mDouble(base_compaction_thread_num_factor);
81
DECLARE_mDouble(cumu_compaction_thread_num_factor);
82
DECLARE_mInt32(check_auto_compaction_interval_seconds);
83
DECLARE_mInt32(max_base_compaction_task_num_per_disk);
84
DECLARE_mBool(prioritize_query_perf_in_compaction);
85
DECLARE_mInt32(compaction_max_rowset_count);
86
87
// CloudStorageEngine config
88
DECLARE_mInt32(refresh_s3_info_interval_s);
89
DECLARE_mInt32(vacuum_stale_rowsets_interval_s);
90
DECLARE_mInt32(schedule_sync_tablets_interval_s);
91
92
// Cloud mow
93
DECLARE_mInt32(mow_stream_load_commit_retry_times);
94
95
DECLARE_mBool(save_load_error_log_to_s3);
96
97
// the theads which sync the datas which loaded in other clusters
98
DECLARE_mInt32(sync_load_for_tablets_thread);
99
100
DECLARE_Int32(delete_bitmap_lock_expiration_seconds);
101
102
// enable large txn lazy commit in meta-service `commit_txn`
103
DECLARE_mBool(enable_cloud_txn_lazy_commit);
104
105
DECLARE_mInt32(remove_expired_tablet_txn_info_interval_seconds);
106
107
DECLARE_mInt32(tablet_txn_info_min_expired_seconds);
108
109
DECLARE_mBool(enable_use_cloud_unique_id_from_fe);
110
111
DECLARE_Bool(enable_cloud_tablet_report);
112
113
} // namespace doris::config