@@ -183,7 +183,9 @@ will be created next in [Phase 2](#phase2).
183183 ENDMACRO ()
184184 ```
185185
186- * Update the ` WORKLOADS ` build argument in docker-compose files if running a
186+ * Update the ` WORKLOADS ` build argument in
187+ [ avalon-pool.yaml] ( ../../docker/compose/avalon-pool.yaml )
188+ if running a
187189 worker pool setup using Docker. The work order processing enclave (WPE)
188190 should be built with workloads the worker pool supports. After updating,
189191 the argument should look like:
@@ -205,7 +207,8 @@ will be created next in [Phase 2](#phase2).
205207 generic command line utility to test the newly-added workload:
206208 ``` bash
207209 examples/apps/generic_client/generic_client.py -o \
208- --workload_id " hello-world" --in_data " Dan"
210+ --workload_id " hello-world" --in_data " Dan" \
211+ --worker_id " kme-worker-1"
209212
210213 ```
211214
@@ -216,7 +219,8 @@ will be created next in [Phase 2](#phase2).
216219
217220 examples/apps/generic_client/generic_client.py -o \
218221 --uri " http://avalon-listener:1947" \
219- --workload_id " hello-world" --in_data " Dan"
222+ --workload_id " hello-world" --in_data " Dan" \
223+ --worker_id " kme-worker-1"
220224 ```
221225
222226
@@ -302,7 +306,8 @@ In this example we name the worker-specific function `ProcessHelloWorld()`.
302306 newly-added workload:
303307 ``` bash
304308 examples/apps/generic_client/generic_client.py -o \
305- --workload_id " hello-world" --in_data " Jane" " Dan"
309+ --workload_id " hello-world" --in_data " Jane" " Dan" \
310+ --worker_id " kme-worker-1"
306311 ```
307312
308313 If you are running Docker, run the utility from a Docker shell
@@ -312,7 +317,8 @@ In this example we name the worker-specific function `ProcessHelloWorld()`.
312317
313318 examples/apps/generic_client/generic_client.py -o \
314319 --uri " http://avalon-listener:1947" \
315- --workload_id " hello-world" --in_data " Jane" " Dan"
320+ --workload_id " hello-world" --in_data " Jane" " Dan" \
321+ --worker_id " kme-worker-1"
316322 ```
317323
318324* The Hello World worker should return a string
487493
488494 ``` bash
489495 examples/apps/generic_client/generic_client.py -o \
490- --workload_id " hello-world" --in_data " jack"
496+ --workload_id " hello-world" --in_data " jack" \
497+ --worker_id " kme-worker-1"
491498 ```
492499
493500 If you are running Docker, run the utility from the Docker shell
497504
498505 examples/apps/generic_client/generic_client.py -o \
499506 --uri " http://avalon-listener:1947" \
500- --workload_id " hello-world" --in_data " jack"
507+ --workload_id " hello-world" --in_data " jack" \
508+ --worker_id " kme-worker-1"
501509 ```
502510
503511* The Hello World worker should return the string
542550 ``` bash
543551 examples/apps/generic_client/generic_client.py -o \
544552 --workload_id " hello-world" --in_data \
545- " jack:8342EFBE7C379231A4E03C80E5BA1AC9E8ACBC5338976CE6146431D8CBF2318D"
553+ " jack:8342EFBE7C379231A4E03C80E5BA1AC9E8ACBC5338976CE6146431D8CBF2318D" \
554+ --worker_id " kme-worker-1"
546555 ```
547556 For Docker:
548557 ``` bash
549558 sudo docker exec -it avalon-shell bash
550559 examples/apps/generic_client/generic_client.py -o \
551560 --uri " http://avalon-listener:1947" \
552561 --workload_id " hello-world" --in_data \
553- " jack:8342EFBE7C379231A4E03C80E5BA1AC9E8ACBC5338976CE6146431D8CBF2318D"
562+ " jack:8342EFBE7C379231A4E03C80E5BA1AC9E8ACBC5338976CE6146431D8CBF2318D" \
563+ --worker_id " kme-worker-1"
554564 ```
555565* The Hello World worker should return the string
556566 ` Hello <name>, your result is <count> `
0 commit comments