Skip to content

Commit 9382d24

Browse files
ykaravasYiannis Karavas
authored and
Yiannis Karavas
committed
Have basics of a configuration generation tool for expanded testing. I foresee much more expanded functionality in the future and a lot of potential. This will require some possible rework of some existing code, however, as well as integration tests to make use of this proposed functionality. Also reorganized config files into their own directory which seems neater. Also needed to fix docker stff. Might need to revert docker stuff. Not sure how that will affect others.
Signed-off-by: Yiannis Karavas <[email protected]>
1 parent aa10a7a commit 9382d24

25 files changed

+1287
-12
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ endif()
7373

7474
add_subdirectory(src)
7575
add_subdirectory(tests)
76+
add_subdirectory(config/tools)
7677
add_subdirectory(tools/bench)
7778
add_subdirectory(tools/shard-seeder)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

config/tools/2pc_config_template.tmpl

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2pc=1
2+
sentinel_count=1
3+
shard_count=1
4+
coordinator_count=1
5+
coordinator_max_threads=1
6+
election_timeout_upper=4000
7+
election_timeout_lower=3000
8+
heartbeat=1000
9+
raft_max_batch=100000
10+
snapshot_distance=1000000000
11+
batch_size=1
12+
wait_for_followers=0
13+
loadgen_invalid_tx_rate=0.00
14+
loadgen_fixed_tx_rate=0.01
15+
loadgen_sendtx_output_count=1
16+
loadgen_sendtx_input_count=1
17+
initial_mint_count=20000
18+
initial_mint_value=100
19+
tmpl_randomize_values=1
20+
tmpl_shard_start=0
21+
tmpl_shard_size=255
22+
tmpl_avg_shard_start_end_overlap_percent=0.15
23+
tmpl_default_log_level="INFO"
24+
tmpl_universal_override_log_level="WARN"
25+
tmpl_sentinel_log_level="WARN"
26+
tmpl_coordinator_log_level="DEBUG"
27+
tmpl_shard_log_level="DEBUG"

config/tools/CMakeLists.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
project(config_gen)
2+
3+
include_directories(../../src ../../config/tools ../../3rdparty/secp256k1/include)
4+
5+
add_library(config_generator config_generator.cpp)
6+
7+
add_executable(generate_config generate_configd.cpp)
8+
9+
target_link_libraries(generate_config config_generator
10+
util
11+
network
12+
common
13+
crypto
14+
secp256k1)
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2pc=0
2+
archiver_count=1
3+
atomizer_count=1
4+
shard_count=1
5+
sentinel_count=1
6+
watchtower_count=1
7+
target_block_interval=3000
8+
stxo_cache_depth=2
9+
target_block_interval=250
10+
election_timeout_upper=4000
11+
election_timeout_lower=3000
12+
heartbeat=1000
13+
raft_max_batch=100000
14+
snapshot_distance=1000000000
15+
batch_size=1
16+
wait_for_followers=0
17+
loadgen_invalid_tx_rate=0.00
18+
loadgen_fixed_tx_rate=0.01
19+
loadgen_sendtx_output_count=1
20+
loadgen_sendtx_input_count=1
21+
initial_mint_count=20000
22+
initial_mint_value=100
23+
tmpl_randomize_values=1
24+
tmpl_shard_start=0
25+
tmpl_shard_size=255
26+
tmpl_avg_shard_start_end_overlap_percent=0.15
27+
tmpl_default_log_level="INFO"
28+
tmpl_sentinel_log_level="DEBUG"
29+
tmpl_shard_log_level="INFO"
30+
tmpl_watchtower_log_level="DEBUG"
31+
tmpl_archiver_log_level="DEBUG"
32+
tmpl_atomizer_log_level="DEBUG"

0 commit comments

Comments
 (0)