-
Notifications
You must be signed in to change notification settings - Fork 2
/
yastq.conf.sample
61 lines (48 loc) · 1.45 KB
/
yastq.conf.sample
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
##
## Yastq script configuration file
##
####################################
### This settings must be tuned ###
####################################
# Script directory
# SCRIPT_DIR=/absolute/path/to/script/directory
SCRIPT_DIR="/home/pavelpat/Projects/yastq"
# Logging level
# Bitwise mask of log levels:
# 1 - Error
# 2 - Warn
# 4 - Info
# 8 - Debug
# 16 - Trace
LOG_LEVEL=$(( 1 | 2 | 4 | 8 | 16 ))
# Parallels tasks in same time (detected by count cpu cores)
# PARALLEL_TASKS=N
PARALLEL_TASKS=$(fgrep -c processor /proc/cpuinfo)
####################################
### Dont touch settings below!!! ###
####################################
# Script parts directories
LOG_DIR=$SCRIPT_DIR/log
PID_DIR=$SCRIPT_DIR/pid
PIPE_DIR=$SCRIPT_DIR/pipe
TASK_DIR=$SCRIPT_DIR/task
LOCK_DIR=$SCRIPT_DIR/lock
# Script part files
COMMON_SCRIPT_FILE=$SCRIPT_DIR/common.sh
LOGGER_SCRIPT_FILE=$SCRIPT_DIR/logger.sh
WORKER_SCRIPT_FILE=$SCRIPT_DIR/worker.sh
QUEUEDB_SCRIPT_FILE=$SCRIPT_DIR/queuedb.sh
DASHBOARD_SCRIPT_FILE=$SCRIPT_DIR/dashboard.sh
TASKSQUEUE_SCRIPT_FILE=$SCRIPT_DIR/tasksqueue.sh
# Path to workers pid file
WORKERS_PID_FILE=$PID_DIR/workers.pid
# Path to tasksqueue pid file
TASKSQUEUE_PID_FILE=$PID_DIR/tasksqueue.pid
# Path to delayed tasks database file lock
TASKS_FILE=$TASK_DIR/task
# Path to delayed tasks database file
TASKS_FILE_LOCK=$LOCK_DIR/taskfile
# Path to pipe file
TASKS_PIPE=$PIPE_DIR/task
# Path to pipe file lock
TASKS_PIPE_LOCK=$LOCK_DIR/taskpipe