-
Notifications
You must be signed in to change notification settings - Fork 28
/
main_config.ini
81 lines (68 loc) · 1.93 KB
/
main_config.ini
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
[ssh]
hosts_config_file = ~/.config/TensorHive/hosts_config.ini
test_on_startup = on
timeout = 10.0
number_of_retries = 1
key_file = ~/.config/TensorHive/ssh_key
[database]
path = ~/.config/TensorHive/database.sqlite
[api]
title = TensorHive API
url_schema = http
url_hostname = 0.0.0.0
url_port = 1111
url_prefix = api
spec_file = api_specification.yml
impl_location = tensorhive.api.controllers
[web_app.server]
backend = gunicorn
host = 0.0.0.0
port = 5000
loglevel = warning
workers = 8
[api.server]
# Available backends: flask, tornado, gevent
backend = gevent
host = 0.0.0.0
port = 1111
debug = off
[monitoring_service]
enabled = yes
enable_gpu_monitor = yes
update_interval = 5.0
[protection_service]
# When a process should be treated as violating the reservation system:
# 0 -> never, 1 -> when violating other users reservations
# 2 -> when running without current reservation
level = 1
update_interval = 30.0
notify_on_pty = yes
# Should violating processes be killed:
# 0 -> never
# 1 -> using kill as the process owner (requires authorized_keys record)
# 2 -> using kill as root (requires sudo privileges for the user running TensorHive)
# Note: process killing requires SSH auth configuration from all users!
kill_processes = 0
# If enabled, please check mailbot_config.ini
notify_via_email = no
[usage_logging_service]
enabled = yes
update_interval = 60.0
# Where to put JSON log files
log_dir = ~/.config/TensorHive/logs/
# What to do with log files after generating summary
# 0 -> remove, 1 -> make hidden, 2 -> append prefix "old_"
log_cleanup_action = 1
[task_scheduling_service]
enabled = yes
update_interval = 30.0
stop_termination_attempts_after_mins = 5
schedule_queued_jobs_when_free_mins = 30
[auth]
secret_key = jwt-some-secret
jwt_blacklist_enabled = yes
jwt_blacklist_token_checks = ['access', 'refresh']
bundle_errors = yes
jwt_access_token_expires_minutes = 1
jwt_refresh_token_expires_days = 1
jwt_token_location = ['headers']