forked from cap-ntu/Morph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
41 lines (29 loc) · 845 Bytes
/
config.py
File metadata and controls
41 lines (29 loc) · 845 Bytes
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
'''
The configuration file for system settings
'''
import os
#the configuration of the master node
master_ip = "127.0.0.1"
master_rpc_port = "8091"
master_rev_port = "9001"
master_snd_port = "9011"
master_path = "./master_data/"
#the configuration of the worker node
worker_path = "./worker_data/"
#the configuration of Mysql
mysql_ip = "127.0.0.1"
mysql_user_name = "root"
mysql_password = ""
mysql_db_name = "morph"
#the duration for each of the video block
equal_block_dur = 60*2
#the number of threads for task preprocessing
preproc_thread_num = 10
#algorithm for task scheduling
sch_alg = 'fifo'
master_path = os.path.abspath(master_path)
worker_path = os.path.abspath(worker_path)
if not os.path.exists(master_path):
os.makedirs(master_path)
if not os.path.exists(worker_path):
os.makedirs(worker_path)