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
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ make log stacks-signer-1 -- -f
58
58
make log stacks-signer-1
59
59
```
60
60
61
+
### Container management
61
62
#### Pause/Unpause service
62
63
To pause all services on the network
63
64
```sh
@@ -88,6 +89,19 @@ Restart the stopped service
88
89
make start <service name>
89
90
```
90
91
92
+
#### Force stop the hacknet network
93
+
If the network is in a "stuck" state where the Makefile targets are not stopping the services (i.e. the `.current-chainstate-dir` file was removed while network was running), `down-force` may be used to force stop the network.
94
+
95
+
```sh
96
+
make down-force
97
+
```
98
+
99
+
Additionally, `clean` target will call `down-force`*and also* delete any chainstates on disk in `./docker/chainstate/*`
100
+
```sh
101
+
make clean
102
+
```
103
+
104
+
### Additional Features
91
105
#### Stress the CPU
92
106
To simulate CPU load. Can be modified with:
93
107
-`STRESS_CORES` to target how many worker threads (default will use all cores)
@@ -99,6 +113,12 @@ make stress
99
113
STRESS_CORES=10 STRESS_TIMEOUT=60 make stress
100
114
```
101
115
116
+
#### Monitor chain heights
117
+
Run a script outputting the current chain heights of each miner
118
+
```sh
119
+
make monitor
120
+
```
121
+
102
122
#### Create a chainstate snapshot
103
123
- Setting the env var `PAUSE_HEIGHT` is optional to pause the chain at a specific height, else a default of Bitcoin block `999999999999` is used.
104
124
- Setting the env var `MINE_INTERVAL_EPOCH3` is recommended to reach the `PAUSE_HEIGHT` more quickly to create the snapshot
@@ -129,19 +149,17 @@ ex:
129
149
CHAINSTATE_ARCHIVE=./docker/chainstate_new.tar.zstd make up
130
150
```
131
151
132
-
#### Force stop the hacknet network
133
-
If the network is in a "stuck" state where the Makefile targets are not stopping the services (i.e. the `.current-chainstate-dir` file was removed while network was running), `down-force` may be used to force stop the network.
134
-
152
+
#### Prometheus sidecar
153
+
##### Run prometheus and cadvisor
154
+
Runs a prometheus container to record data collected by `cadvisor` for tracking host/container metrics
135
155
```sh
136
-
make down-force
156
+
make up-prom
137
157
```
138
-
139
-
Additionally, `clean` target will call `down-force`*and also* delete any chainstates on disk in `./docker/chainstate/*`
0 commit comments