-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsched_config.py-example
More file actions
52 lines (43 loc) · 1.58 KB
/
sched_config.py-example
File metadata and controls
52 lines (43 loc) · 1.58 KB
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
####################################################################
# Scheduler configuration
####################################################################
import os
# Database
dbconfig = {
'dbhost' : 'localhost',
'dbuser' : 'ds-scheduler',
'dbpass' : 'dbpassword',
'dbname' : 'ds-scheduler',
}
#Scheduler
config = {
# 'apscheduler.jobstores.file.class': 'apscheduler.jobstores.shelve_store:ShelveJobStore',
# 'apscheduler.jobstores.file.path': '/tmp/dbfile'
}
agent_port = 999
event_port = 998
#Clustering
clustering = False
PORT = 43278; CHECK_PERIOD = 5; CHECK_TIMEOUT = 3
# Remote Peer
peers = { '192.168.50.4': '',
'192.168.50.3': '', }
# Preferred master MUST mastch on all scheduler masters else bad things happen.
preferred_master = '192.168.50.4'
# This is where your installation should live. Point this to where ever
# You decide to move it to.
sched_basedir = '/opt/scheduler'
# SSL info. Should not need to change these
ssl_dir = os.path.join(sched_basedir, 'ssl')
# Agent Cert dir.
agent_certs = os.path.join(sched_basedir, 'ssl/agents')
master_certfile = 'master.pem'
master_keyfile = 'master.key'
# Logging
logfile = '/var/log/DSscheduler.log'
# Command to run when job fail
# possible to set 2 parameters : job name and return code
# with command_jobfail = "/path/to/script \'%s\' \'%s\'"
#command_jobfail = "/path/to/script"
####################################################################
####################################################################