-
Notifications
You must be signed in to change notification settings - Fork 0
/
superman.sample.toml
85 lines (69 loc) · 2.15 KB
/
superman.sample.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## Verbosity (log level)
## Choose from trace, debug, info (default), warn, error, fatal
## To set the log level earlier than config loading, use the
## SUPERMAN_VERBOSE environment variable instead.
##
#verbose = "debug"
## Rollbar token. Rollbar is disabled if that's not provided.
## To set the rollbar environment, provide the NODE_ENV environment
## variable to the superman daemon.
##
#rollbar = "token"
[reload]
## Interval at which the function list is reloaded. Does not reload
## on interval if not provided or falsy. Reloading on USR2 signal is
## always enabled.
##
## Reloading does not reload this configuration.
## Syntax is anything ms() takes as a string, or milliseconds as an int.
##
#interval = "60s"
## Gearman client options, passed directly to Abraxas.
## If empty, connects to localhost on default port.
[gearman]
#host = "127.0.0.1"
#port = 4730
## When debugging you'll want this:
#packetDump = true
## MySQL client options, passed directly to Knex (mysql2) to the exception of table.
## If empty, does not connect (you should then provide [[functions]]).
[mysql]
#host
#port
#database
#user
#password
## Table to query for function definitions.
##
#table = "gearman_functions"
## Influx client options, passed directly to node-influx, to the exception of prefix.
## If empty, does not send influx stats.
[influx]
#host
#port
#username
#password
#database
#protocol (http or https)
## Prefix for the measurements
## Default: "superman_"
#prefix = "gearman_workers_"
## Worker settings, applied to child processes
[worker]
## Key-value pairs of environment variables
## No environment is passed from daemon, defaults to empty.
env = { PHP_ENV = "development" }
## Timeout in ms() format. Disabled if unset/falsy (default).
#timeout = "120s"
## Maximum size of workload. Default: 128M.
#max_buffer = "4G"
## User to run worker as (recommended). Defaults to daemon user.
#user = "www-data"
## Group to run worker as (recommended). Defaults to daemon group.
#group = "www-data"
## Static function definitions.
## If any are provided, mysql will not be called on.
[[functions]]
name = "Test::reverse"
executor = "/home/code/php/uc/bin/run-order"
concurrency = 3