You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,19 @@ Grafana is started with the two pre-provisioned dashboards from [leanMetrics](ht
82
82
83
83
> **Note:** The `--metrics` flag only affects local deployments. When using Ansible deployment mode, this flag is ignored. Metrics ports are always exposed by clients regardless of this flag.
84
84
85
+
### Aggregator Selection
86
+
87
+
```sh
88
+
# Let the system randomly select an aggregator (default behavior)
89
+
NETWORK_DIR=local-devnet ./spin-node.sh --node all --generateGenesis
90
+
91
+
# Manually specify which node should be the aggregator
92
+
NETWORK_DIR=local-devnet ./spin-node.sh --node all --generateGenesis --aggregator zeam_0
93
+
94
+
# The aggregator selection is applied automatically and the isAggregator flag
95
+
# is updated in validator-config.yaml before nodes are started
96
+
```
97
+
85
98
## Args
86
99
87
100
1.`NETWORK_DIR` is an env to specify the network directory. Should have a `genesis` directory with genesis config. A `data` folder will be created inside this `NETWORK_DIR` if not already there.
@@ -131,6 +144,7 @@ Grafana is started with the two pre-provisioned dashboards from [leanMetrics](ht
131
144
- If not provided, defaults to `latest` for zeam, ream, and lantern, and `dd67521` for qlean
132
145
- The script will automatically pull the specified Docker images before running containers
133
146
- Example: `--tag devnet0` or `--tag devnet1`
147
+
<<<<<<< HEAD
134
148
11.`--metrics` starts a Prometheus + Grafana metrics stack alongside the devnet (local deployments only). When specified:
135
149
- Generates `metrics/prometheus/prometheus.yml` from `validator-config.yaml` with scrape targets for all configured nodes
136
150
- Starts Prometheus (http://localhost:9090) and Grafana (http://localhost:3000) via Docker Compose
@@ -139,6 +153,15 @@ Grafana is started with the two pre-provisioned dashboards from [leanMetrics](ht
139
153
- On Ctrl+C cleanup, the metrics stack is stopped automatically
140
154
141
155
Note: Client metrics endpoints are always enabled regardless of this flag.
156
+
=======
157
+
11.`--metrics` enables metrics collection on all nodes. When specified, each client will activate its metrics endpoint according to its implementation. Metrics ports are configured per node in `validator-config.yaml`.
158
+
12.`--aggregator` specifies which node should act as the aggregator (1 aggregator per subnet).
159
+
- If not provided, one node will be randomly selected as the aggregator
160
+
- If provided, the specified node will be set as the aggregator
161
+
- The aggregator selection updates the `isAggregator` flag in `validator-config.yaml`
162
+
- Example: `--aggregator zeam_0` to make zeam_0 the aggregator
163
+
- Example: Without flag, a random node will be selected automatically
164
+
>>>>>>> 1030459 (feat: add attestation_committee_count config and auto aggregator selection)
0 commit comments