Skip to content

Configuration

Niklaus Schen edited this page Nov 14, 2023 · 3 revisions

Configuration

The configuration of Meproc is very simple, with only the following configuration options.

Conf = [
    'ip': '0.0.0.0',
    'port': '8606',
    'log_level': 'debug',
    'log_dir': '/tmp',
    'web': [
        'ip': '127.0.0.1',
        'port': '8606',
    ],
    'bootstrap_cmd': '',
];
  1. ip is the address that Meproc service listens to HTTP requests on.
  2. port is the port where the Meproc service listens for HTTP requests.
  3. log_level is the log output level of Meproc. There are four log levels, ranked from low to high:
  • debug
  • info
  • warn
  • error
  1. log_dir is the path to the directory where the log files are located. This directory contains not only the log file for Meproc (Meproc.log), but also the log files of all task processes' output content.
  2. web is used for Ajax requests from the web page to access Meproc. The ip and port mentioned here are the external IP and port of Meproc.
  3. bootstrap_cmd is a script that will be automatically executed when Meproc starts. It can be used to automatically initiate tasks upon Meproc startup.

That's all.

Clone this wiki locally