Skip to content
Snippets Groups Projects
Commit 8a68f26f authored by ale's avatar ale
Browse files

Rewrite shell snippets for clarity

parent 732ab5b1
No related branches found
No related tags found
Loading
...@@ -96,7 +96,7 @@ We need to start the queue engine and tell it which database to use: ...@@ -96,7 +96,7 @@ We need to start the queue engine and tell it which database to use:
Then we can start the worker and have it talk to the engine: Then we can start the worker and have it talk to the engine:
```shell ```shell
# enq worker --server localhost:3733 enq worker --server localhost:3733
``` ```
Run each of these commands in its own terminal as they are daemons Run each of these commands in its own terminal as they are daemons
...@@ -133,7 +133,7 @@ Save the above to *task.json*. Now it's possible to submit this task ...@@ -133,7 +133,7 @@ Save the above to *task.json*. Now it's possible to submit this task
to the queue: to the queue:
```shell ```shell
# enq submit --server localhost:3733 < task.json enq submit --server localhost:3733 < task.json
``` ```
The worker logs should show the *process-user-data* script being The worker logs should show the *process-user-data* script being
...@@ -202,7 +202,7 @@ will ensure the correct order of execution. Save the above to ...@@ -202,7 +202,7 @@ will ensure the correct order of execution. Save the above to
*tree.json* and submit it with: *tree.json* and submit it with:
```shell ```shell
# enq submit --server localhost:3733 < tree.json enq submit --server localhost:3733 < tree.json
``` ```
Again, worker logs should show the two tasks being executed in Again, worker logs should show the two tasks being executed in
...@@ -225,12 +225,12 @@ We can start the various components with the following commands ...@@ -225,12 +225,12 @@ We can start the various components with the following commands
(again, run each one in a separate terminal): (again, run each one in a separate terminal):
```shell ```shell
# enq server --db test1.db --shard host1 --addr :3733 \ enq server --db test1.db --shard host1 --addr :3733 \
--topology static:1=localhost:3733,2=localhost:3734 --topology static:1=localhost:3733,2=localhost:3734
# enq server --db test2.db --shard host2 --addr :3734 \ enq server --db test2.db --shard host2 --addr :3734 \
--topology static:1=localhost:3733,2=localhost:3734 --topology static:1=localhost:3733,2=localhost:3734
# enq worker --id worker1 --server localhost:3733 enq worker --id worker1 --server localhost:3733
# enq worker --id worker2 --server localhost:3734 enq worker --id worker2 --server localhost:3734
``` ```
Suppose that we now want to save user data from all shards: Suppose that we now want to save user data from all shards:
...@@ -292,7 +292,7 @@ You can send the submission request to any instance of the ...@@ -292,7 +292,7 @@ You can send the submission request to any instance of the
engine. Save the above to *tree2.json* and submit it with: engine. Save the above to *tree2.json* and submit it with:
```shell ```shell
# enq submit --server localhost:3734 < tree2.json enq submit --server localhost:3734 < tree2.json
``` ```
All tasks should execute in order on the expected workers. All tasks should execute in order on the expected workers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment