Skip to content

Commit

Permalink
[readme] Remove writer information
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriocos committed Mar 23, 2018
1 parent c935dab commit 04b72b2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ it. Once a job is finished, if the result is successful, the server will
re-schedule it to retrieve new data.

By default, items fetched by each job will be published using a Redis queue.
Additionally, they can be written to an Elastic Search index.


## Usage

### arthurd
```
usage: arthurd [-c <file>] [-g] [-h <host>] [-p <port>] [-d <database>]
[--es-index <index>] [--log-path <path>] [--archive-path <cpath>]
[--log-path <path>] [--archive-path <cpath>]
[--no-archive] [--no-daemon] | --help
King Arthur commands his loyal knight Perceval on the quest
Expand All @@ -46,7 +45,6 @@ optional arguments:
-p, --port set listening TCP port (default: 8080)
-d, --database URL database connection (default: 'redis://localhost/8')
-s, --sync work in synchronous mode (without workers)
--es-index output ElasticSearch server index
--log-path path where logs are stored
--archive-path path to archive manager directory
--no-archive do not archive fetched raw data
Expand Down Expand Up @@ -121,13 +119,12 @@ $ python3 setup.py install
## How to run it

The first step is to run a Redis server that will be used for communicating
Arthur's components. Moreover, an Elastic Search server can be used to store
the items generated by jobs. Please refer to their documentation to know how to
install and run them both.
Arthur's components. Please refer to its documentation to know how to
install and run it.

To run Arthur server:
```
$ arthurd -g -d redis://localhost/8 --es-index http://localhost:9200/items --log-path /tmp/logs/arthud --no-archive
$ arthurd -g -d redis://localhost/8 --log-path /tmp/logs/arthud --no-archive
```

To run a worker:
Expand Down Expand Up @@ -186,9 +183,6 @@ Then, send this JSON stream to the server calling `add` method.
$ curl -H "Content-Type: application/json" --data @tasks.json http://127.0.0.1:8080/add
```

For this example, items will be stored in the `items` index on the
Elastic Search server (http://localhost:9200/items).

## Listing tasks

The list of tasks currently scheduled can be obtained using the method `tasks`.
Expand Down

0 comments on commit 04b72b2

Please sign in to comment.