Skip to content

Commit

Permalink
Have basics of a configuration generation tool for expanded testing. …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
ykaravas committed Jun 22, 2022
1 parent 0d7b5cf commit 4165df7
Show file tree
Hide file tree
Showing 10 changed files with 835 additions and 493 deletions.
5 changes: 5 additions & 0 deletions config/tools/2pc_config_template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ tmpl_randomize_values=1
tmpl_shard_start=0
tmpl_shard_size=255
tmpl_avg_shard_start_end_overlap_percent=0.15
tmpl_default_log_level="INFO"
tmpl_universal_override_log_level="WARN"
tmpl_sentinel_log_level="WARN"
tmpl_coordinator_log_level="DEBUG"
tmpl_shard_log_level="DEBUG"
9 changes: 5 additions & 4 deletions config/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
project(config_gen)

include_directories(../../src ../../3rdparty/secp256k1/include)
include_directories(../../src ../../config/tools ../../3rdparty/secp256k1/include)

set(SECP256K1_LIBRARY $<TARGET_FILE:secp256k1>)
add_library(config_generator config_generator.cpp)

add_executable(generate_config config_generator.cpp)
add_executable(generate_config generate_configd.cpp)

target_link_libraries(generate_config util
target_link_libraries(generate_config config_generator
util
network
common
crypto
Expand Down
7 changes: 7 additions & 0 deletions config/tools/atomizer_config_template.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2pc=0
archiver_count=1
atomizer_count=1
shard_count=1
Expand All @@ -23,3 +24,9 @@ tmpl_randomize_values=1
tmpl_shard_start=0
tmpl_shard_size=255
tmpl_avg_shard_start_end_overlap_percent=0.15
tmpl_default_log_level="INFO"
tmpl_sentinel_log_level="DEBUG"
tmpl_shard_log_level="INFO"
tmpl_watchtower_log_level="DEBUG"
tmpl_archiver_log_level="DEBUG"
tmpl_atomizer_log_level="DEBUG"
Loading

0 comments on commit 4165df7

Please sign in to comment.