diff --git a/cl_config/cfgsync.yaml b/cl_config/cfgsync.yaml new file mode 100644 index 0000000..ded6532 --- /dev/null +++ b/cl_config/cfgsync.yaml @@ -0,0 +1,21 @@ +port: 4400 +n_hosts: 2 +timeout: 10 + +# ConsensusConfig related parameters +security_param: 10 +active_slot_coeff: 0.9 + +# DaConfig related parameters +subnetwork_size: 2 +dispersal_factor: 2 +num_samples: 1 +num_subnets: 2 +old_blobs_check_interval_secs: 5 +blobs_validity_duration_secs: 60 +global_params_path: "/kzgrs_test_params" + +# Tracing params +tempo_endpoint: "http://tempo:4317" +loki_endpoint: "http://loki:3100" +metrics_endpoint: "http://prometheus:9090/api/v1/otlp/v1/metrics" diff --git a/cl_config/scripts/run_cfgsync.sh b/cl_config/scripts/run_cfgsync.sh new file mode 100755 index 0000000..d0f2659 --- /dev/null +++ b/cl_config/scripts/run_cfgsync.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +exec /usr/bin/cfgsync-server /etc/nomos/cfgsync.yaml diff --git a/cl_config/scripts/run_nomos_executor.sh b/cl_config/scripts/run_nomos_executor.sh new file mode 100755 index 0000000..9fab2a6 --- /dev/null +++ b/cl_config/scripts/run_nomos_executor.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +export CFG_FILE_PATH="/config.yaml" \ + CFG_SERVER_ADDR="http://cfgsync:4400" \ + CFG_HOST_IP=$(hostname -i) \ + CFG_HOST_KIND="executor" \ + CFG_HOST_IDENTIFIER="executor-$(hostname -i)" \ + LOG_LEVEL="INFO" \ + RISC0_DEV_MODE=true + +/usr/bin/cfgsync-client && \ + exec /usr/bin/nomos-executor /config.yaml diff --git a/cl_config/scripts/run_nomos_node.sh b/cl_config/scripts/run_nomos_node.sh new file mode 100755 index 0000000..d8c7338 --- /dev/null +++ b/cl_config/scripts/run_nomos_node.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +export CFG_FILE_PATH="/config.yaml" \ + CFG_SERVER_ADDR="http://cfgsync:4400" \ + CFG_HOST_IP=$(hostname -i) \ + CFG_HOST_IDENTIFIER="validator-$(hostname -i)" \ + LOG_LEVEL="INFO" \ + RISC0_DEV_MODE=true + +/usr/bin/cfgsync-client && \ + exec /usr/bin/nomos-node /config.yaml