VDS Gateway service
Service overview
| Software owner | Workfusion |
|---|---|
| Service description | Gateway service receives requests from WorkFusion app and sends responses (list of available models, extracted data). It provides REST API for all available ML operations. It communicates with other ML services via RabbitMQ |
| Log files | Access logs: <INSTALL_DIR>/supervisord/log/vds-gateway-service.out.log Error logs: <INSTALL_DIR>/supervisord/log/vds-gateway-service.err.log |
| Management | wfmanager (start | stop | restart | status) vds-gateway-service |
| Installation directories | vds-gateway-service main directory: <INSTALL_DIR>/vds-gateway-service/ |
| Startup scripts | <INSTALL_DIR>/supervisord/apps/vds-gateway-service.ini <INSTALL_DIR>/java/ |
| Configuration files | <INSTALL_DIR>/vds-gateway-service/vds-gateway-service.properties |
| Default Ports | TCP 9080 |
Default parameters
| Configuration file | Name | Default value | Description |
|---|---|---|---|
| config.yml | install_dir | /opt/workfusion | Directory to put user files, logs and configs |
Troubleshooting
Check if TCP port 9080 is available.
netstat command output
$ netstat -lntp | grep 9080
tcp6 0 0 127.0.0.1:9080 :::* LISTEN 23401/java
ss command output
$ ss -ltn | egrep 9080
LISTEN 0 100 ::ffff:127.0.0.1:9080 :::*
lsof command output
$ lsof -P -n -i :9080 | grep LISTEN
java 23401 wfuser 18u IPv6 74891696 0t0 TCP 127.0.0.1:9080 (LISTEN)
Check the default main log files:
- Access logs: <INSTALL_DIR>/supervisord/log/vds-gateway-service.out.log
- Error logs: <INSTALL_DIR>/supervisord/log/vds-gateway-service.err.log
$ tail -f <INSTALL_DIR>/supervisord/log/vds-gateway-service.err.log <INSTALL_DIR>/supervisord/log/vds-gateway-service.out.log
Check vds-gateway-service out (access) log using Wfmanager util.
wfmanager tail vds-gateway-service