Skip to content

Commit d7795aa

Browse files
committed
add make target to build proof-aggregator
move remote management files to separate directory
1 parent 6fe70c6 commit d7795aa

10 files changed

Lines changed: 14 additions & 5 deletions

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ start_proof_aggregator_local: ## Start the proof aggregator locally using Mock V
161161
start_proof_aggregator_local_with_proving: ## Start the proof aggregator locally using SP1 Verifier Contract
162162
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
163163

164+
install_aggregation_mode: ## Install the aggregation mode with proving enabled
165+
cargo install --path aggregation_mode --features prove
166+
164167
_AGGREGATOR_:
165168

166169
build_aggregator:

infra/aggregation_mode/aggregation_mode.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/config_file.s
106106

107107
# Build the proof_aggregator
108108
cd repos/proof_aggregation/aligned_layer
109-
cargo install --path aggregation_mode --features prove
109+
make install_aggregation_mode
110110

111111
# Setup systemd service
112112
cp $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/aggregation_mode.service $HOME/.config/systemd/user/aggregation_mode.service
@@ -122,3 +122,7 @@ systemctl --user start aggregation_mode_stage.service
122122

123123
# Check timer status
124124
systemctl --user status aggregation_mode.timer
125+
126+
# Check logs
127+
journalctl -xfeu aggregation_mode.service --user -n10
128+
journalctl -xfeu aggregation_mode_stage.service --user -n10

infra/aggregation_mode/config-proof-aggregator.template.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ proof_aggregation_service_address: <proof_aggregation_service_address>
33
eth_rpc_url: <eth_rpc_url>
44
eth_ws_url: <eth_ws_url>
55
max_proofs_in_queue: 1000
6-
# How far in the past should the service go to fetch batch logs
7-
fetch_logs_from_secs_ago: 8500 # 24hs
8-
# Anvil start with block time is 7 seconds
9-
block_time_secs: 12
6+
last_aggregated_block_filepath: /home/user/config/proof-aggregator.last_aggregated_block.json
107

118
ecdsa:
129
private_key_store_path: <private_key_store_path>

infra/aggregation_mode/.env.aggregation_mode_start renamed to infra/aggregation_mode/remote_management/.env.aggregation_mode_start

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This files are supposed to be used in case we want to manage the process using a second server who starts the GPU server using a timer.
2+
3+
It is useful to avoid being charged for the time the GPU server is not used.
4+
5+
As the GPU stock is limited we are keeping the GPU server running all the time, but in case we want to use it only when needed, we can use this scripts to start and stop the GPU server using a timer.

infra/aggregation_mode/aggregation_mode_shutdown.sh renamed to infra/aggregation_mode/remote_management/aggregation_mode_shutdown.sh

File renamed without changes.

infra/aggregation_mode/aggregation_mode_start.service renamed to infra/aggregation_mode/remote_management/aggregation_mode_start.service

File renamed without changes.

infra/aggregation_mode/aggregation_mode_start.sh renamed to infra/aggregation_mode/remote_management/aggregation_mode_start.sh

File renamed without changes.

infra/aggregation_mode/aggregation_mode_start.timer renamed to infra/aggregation_mode/remote_management/aggregation_mode_start.timer

File renamed without changes.

infra/aggregation_mode/aggregation_mode_start_setup.sh renamed to infra/aggregation_mode/remote_management/aggregation_mode_start_setup.sh

File renamed without changes.

0 commit comments

Comments
 (0)