forked from uber/kraken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.yaml
69 lines (62 loc) · 1.36 KB
/
base.yaml
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
zap:
level: info
development: false
encoding: console
disableStacktrace: true
encoderConfig:
messageKey: message
nameKey: logger_name
levelKey: level
timeKey: ts
callerKey: caller
stacktraceKey: stack
levelEncoder: capital
timeEncoder: iso8601
durationEncoder: seconds
callerEncoder: short
outputPaths:
- stdout
- /var/log/kraken/kraken-agent/stdout.log
errorOutputPaths:
- stdout
- /var/log/kraken/kraken-agent/stdout.log
metrics:
m3:
service: kraken-agent
scheduler:
log:
timeEncoder: iso8601
torrentlog:
service_name: kraken-agent
path: /var/log/kraken/kraken-agent/torrent.log
encoding: json
timeEncoder: epoch
dispatch:
piece_request_policy: rarest_first
conn:
bandwidth:
enable: true
store:
download_dir: /var/cache/kraken/kraken-agent/download/
cache_dir: /var/cache/kraken/kraken-agent/cache/
download_cleanup:
ttl: 24h
cache_cleanup:
ttl: 24h
registry:
docker:
version: 0.1
log:
level: error
http:
net: unix
addr: /tmp/kraken-agent-registry.sock
peer_id_factory: addr_hash
# Allow agent to only serve localhost and Docker default bridge requests.
allowed_cidrs:
- 127.0.0.1
- 172.17.0.1
nginx:
name: kraken-agent
cache_dir: /var/cache/kraken/kraken-agent/nginx/
log_dir: /var/log/kraken/kraken-agent/