-
Notifications
You must be signed in to change notification settings - Fork 212
/
config.stateful.ini
168 lines (134 loc) · 3.67 KB
/
config.stateful.ini
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[config.args]
;; defined in app config file
;; service_type = <service-type>
service_type = simple_kv
[modules]
dsn.app.simple_kv
dsn.tools.common
dsn.tools.emulator
dsn.tools.nfs
dsn.dist.uri.resolver
dsn.dist.service.meta_server
dsn.dist.service.stateful.type1
[apps.client]
type = %service_type%.client
arguments = dsn://mycluster/myskv
pools = THREAD_POOL_DEFAULT
[apps.client.perf]
type = %service_type%.client.perf
arguments = dsn://mycluster/myskv
pools = THREAD_POOL_DEFAULT
run = false
[simple_kv.simple_kv.perf-test.case.1]
perf_test_seconds = 20
perf_test_key_space_size = 100000
perf_test_concurrency = 1
perf_test_payload_bytes = 128
perf_test_timeouts_ms = 10000
perf_test_hybrid_request_ratio = 1,1,1,
;; meta server for stateful service
[apps.meta]
type = meta
ports = 24701
pools = THREAD_POOL_DEFAULT,THREAD_POOL_META_SERVER,THREAD_POOL_FD,THREAD_POOL_META_STATE
;; replica servers for stateful service
[apps.replica]
type = replica
ports = 34701
pools = THREAD_POOL_DEFAULT,THREAD_POOL_REPLICATION,THREAD_POOL_FD,THREAD_POOL_LOCAL_APP,THREAD_POOL_REPLICATION_LONG
count = 3
[meta_server]
server_list = localhost:24701
min_live_node_count_for_unfreeze = 1
[replication.app]
app_name = myskv
app_type = %service_type%
partition_count = 4
max_replica_count = 3
stateful = true
;; required by clients, and replica servers
[uri-resolver.dsn://mycluster]
factory = partition_resolver_simple
arguments = localhost:24701
[core]
start_nfs = true
tool = emulator
;tool = nativerun
toollets = tracer
;toollets = tracer,profiler,fault_injector
pause_on_start = false
;logging_start_level = LOG_LEVEL_WARNING
;logging_factory_name = dsn::tools::hpc_logger
[network]
; how many network threads for network library(used by asio)
io_service_worker_count = 2
; specification for each thread pool
[threadpool..default]
worker_count = 15
[threadpool.THREAD_POOL_DEFAULT]
name = default
partitioned = false
max_input_queue_length = 1024
[threadpool.THREAD_POOL_REPLICATION]
name = replication
partitioned = true
max_input_queue_length = 2560
[threadpool.THREAD_POOL_META_STATE]
worker_count = 1
[task..default]
is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000
disk_write_fail_ratio = 0.0
disk_read_fail_ratio = 0.00001
[task.LPC_AIO_IMMEDIATE_CALLBACK]
is_trace = false
allow_inline = false
disk_write_fail_ratio = 0.0
[task.LPC_RPC_TIMEOUT]
is_trace = false
[task.LPC_CHECKPOINT_REPLICA]
;execution_extra_delay_us_max = 10000000
[task.LPC_LEARN_REMOTE_DELTA_FILES]
;execution_extra_delay_us_max = 10000000
[task.RPC_FD_FAILURE_DETECTOR_PING]
is_trace = false
rpc_call_channel = RPC_CHANNEL_UDP
[task.RPC_FD_FAILURE_DETECTOR_PING_ACK]
is_trace = false
rpc_call_channel = RPC_CHANNEL_UDP
[task.LPC_BEACON_CHECK]
is_trace = false
[task.LPC_DAEMON_APPS_CHECK_TIMER]
is_trace = false
[task.RPC_PREPARE]
rpc_request_resend_timeout_milliseconds = 8000
[replication]
prepare_timeout_ms_for_secondaries = 10000
prepare_timeout_ms_for_potential_secondaries = 20000
learn_timeout_ms = 30000
staleness_for_commit = 20
staleness_for_start_prepare_for_potential_secondary = 110
mutation_max_size_mb = 15
mutation_max_pending_time_ms = 20
mutation_2pc_min_replica_count = 2
prepare_list_max_size_mb = 250
request_batch_disabled = false
group_check_internal_ms = 100000
group_check_disabled = false
fd_disabled = false
fd_check_interval_seconds = 5
fd_beacon_interval_seconds = 3
fd_lease_seconds = 14
fd_grace_seconds = 15
working_dir = .
log_buffer_size_mb = 1
log_pending_max_ms = 100
log_file_size_mb = 32
log_batch_write = true
log_enable_shared_prepare = true
log_enable_private_commit = false
config_sync_interval_ms = 60000