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: edge/wasm-sensors/README.md
+29
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,7 @@ This scenario demonstrates the message flow and deployment behavior across diffe
201
201
1. Start the network:
202
202
203
203
```bash
204
+
export REPLICAS=3 # Set number of replicas per region
204
205
./demo.sh start_network
205
206
```
206
207
@@ -386,3 +387,31 @@ This should return:
386
387
387
388
-**Configuration Updates**: Configuration is set at job startup and cannot be changed during execution. To change configuration, you need to stop and redeploy the job.
388
389
-**Direct File Access**: WASM modules have limited filesystem access through Bacalhau.
390
+
391
+
### Environment Variables
392
+
393
+
The demo script uses the following environment variables:
394
+
395
+
-`PROXY_URL`: URL of the SQS proxy service (default: `http://bacalhau-edge-sqs-proxy-1:9090`)
396
+
-`REPLICAS`: Number of edge nodes and job instances per region (default: `3`)
397
+
398
+
This single `REPLICAS` variable controls both:
399
+
400
+
- The number of edge nodes per region in the Docker Compose setup
401
+
- The number of job instances deployed per region
402
+
403
+
You can set these variables before running the demo script:
Note: When using multiple replicas per region, make sure your system has enough resources to handle the increased load. Each replica will have its own resource limits as defined in the Docker Compose file.
0 commit comments