Worker should have some default configuration which is applied to worker itself or may be used in given jobs (implicitly if something is missing, or explicitly with special variables). This configuration should be hardcoded and can be rewritten by explicitly declared configuration file. Format of this configuration is yaml like in the job config.
Worker should have some default configuration which is applied to worker itself or may be used in given jobs (implicitly if something is missing, or explicitly with special variables). This configuration should be hardcoded and can be rewritten by explicitly declared configuration file. Format of this configuration is yaml like in the job config.
```
```
--- # only one document with all configuration needed
--- # only one document with all configuration needed
job-collector:
worker-id: 1
hostname: "localhost"
broker-uri: tcp://localhost:9657
port: 36587
headers:
headers: exact_time&&all
env:
- c
- python
threads: 2
hwgroup: "group1"
file-manager:
file-manager:
file-collector:
file-collector:
hostname: "localhost"
hostname: "localhost"
@ -34,7 +38,6 @@ logger:
level: "debug" # level of logging - one of "debug", "warn", "emerg"
level: "debug" # level of logging - one of "debug", "warn", "emerg"
max-size: 1048576 # 1 MB; max size of file before log rotation
max-size: 1048576 # 1 MB; max size of file before log rotation