blob: 3ae34927494aeb152b77569114dcc3b4155bed57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* include/framework/util/Configuration.h
*
* Copyright (C) 2023-2024 Douglas B. Rumbaugh <drumbaugh@psu.edu>
*
* Distributed under the Modified BSD License.
*
*/
#pragma once
#include "framework/reconstruction/ReconstructionPolicy.h"
#include "util/types.h"
#include "framework/interface/Scheduler.h"
#include <cstdlib>
namespace de {
template <ShardInterface ShardType, QueryInterface<ShardType> QueryType,
DeletePolicy D, SchedulerInterface SchedType>
class DEConfiguration {
public:
DEConfiguration(std::unique_ptr<ReconstructionPolicy<ShardType, QueryType>> recon_policy)
: recon_policy(std::move(recon_policy)) {}
std::unique_ptr<ReconstructionPolicy<ShardType, QueryType>> recon_policy;
/* buffer parameters */
size_t buffer_count = 1;
size_t buffer_size = 8000;
size_t buffer_flush_trigger = buffer_size / 2;
/* reconstruction triggers */
bool recon_enable_seek_trigger = false;
bool recon_enable_maint_on_flush = false;
bool recon_enable_delete_cmpct = false;
bool recon_maint_disabled = true;
size_t recon_l0_capacity = 0; /* 0 for unbounded */
double maximum_delete_proportion = 1;
/* resource management */
size_t maximum_threads = 16;
size_t minimum_recon_threads = 1;
size_t minimum_query_threads = 4;
size_t maximum_memory_usage = 0; /* o for unbounded */
size_t physical_core_count = 6;
size_t buffer_flush_query_preemption_trigger = UINT64_MAX;
bool dynamic_ratelimiting = false;
size_t rt_level_scale = 1;
};
} // namespace de
|