2013-12-09 08:37:48 -05:00
|
|
|
---
|
|
|
|
layout: doc_page
|
|
|
|
---
|
|
|
|
|
|
|
|
Peons
|
|
|
|
-----
|
|
|
|
|
2015-03-09 19:14:52 -04:00
|
|
|
For Peon Configuration, see [Peon Configuration](Indexing-Service-Config.html).
|
2013-12-09 08:37:48 -05:00
|
|
|
|
2015-03-09 19:14:52 -04:00
|
|
|
Peons run a single task in a single JVM. MiddleManager is responsible for creating Peons for running tasks.
|
|
|
|
Peons should rarely (if ever for testing purposes) be run on their own.
|
2013-12-09 08:37:48 -05:00
|
|
|
|
2015-03-09 19:14:52 -04:00
|
|
|
Running
|
|
|
|
-------
|
2013-12-09 08:37:48 -05:00
|
|
|
|
2015-03-09 19:14:52 -04:00
|
|
|
The peon should very rarely ever be run independent of the middle manager unless for development purposes.
|
2013-12-09 08:37:48 -05:00
|
|
|
|
|
|
|
```
|
|
|
|
io.druid.cli.Main internal peon <task_file> <status_file>
|
|
|
|
```
|
|
|
|
|
|
|
|
The task file contains the task JSON object.
|
2015-03-09 19:14:52 -04:00
|
|
|
The status file indicates where the task status will be output.
|