Updated Monitor (markdown)

master
Martin Polanka 8 years ago
parent e2b38098af
commit 41f24b234c

@ -1,6 +1,6 @@
# Monitor
## Introduction
## Description
Monitor is part of ReCodEx solution for reporting progress of job evaluation back to user in the real time. It gets progress notifications from broker and sends them through WebSockets to clients' browsers. For now, it's meant as an optional part of whole solution, but for full experince it's recommended to use one.
@ -56,8 +56,9 @@ Make sure to allow TCP connection to WebSocket address and port specified in con
- run installation as `python3 setup.py install --install-scripts /usr/bin`
- run postinst script as root - `sudo ./install/postinst`
## Configuration
## Configuration and usage
### Configuration
Configuration file is located in subdirectory `monitor` of standard ReCodEx configuration folder `/etc/recodex/`. It's in YAML format as all of the other configurations. Format is very similar to configurations of broker or workers. Example configuration file is here:
```{.yml}
@ -90,8 +91,7 @@ logger:
- **max-size** - maximum size of log file before rotation in bytes
- **rotations** - number of rotations kept
## Usage
### Usage
Preferred way to start monitor as a service is via systemd as `sudo systemctl start recodex-monitor.service`. After that, check if application lauch was successful using `sudo systemctl status recodex-monitor.service`. Now you should see green **Active (running)**.
Alternative starting command is `recodex-monitor -c /etc/recodex/monitor/config.yml` from command line. But note that it won't start monitor as a daemon.

Loading…
Cancel
Save