-
Notifications
You must be signed in to change notification settings - Fork 32
/
northstar.toml
61 lines (56 loc) · 1.91 KB
/
northstar.toml
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
# Directory where containers are mounted
run_dir = "target/northstar/run"
# Directory for `persist` mounts of containers
data_dir = "target/northstar/data"
# Socket directory
socket_dir = "target/northstar/sockets"
# Top level cgroup name
cgroup = "northstar"
# Event loop buffer size
event_buffer_size = 256
# Notification buffer size
notification_buffer_size = 64
# Loop device timeout
loop_device_timeout = "5s"
[console.options]
# Token validity
token_validity = "1m"
# Limits the number of requests processed per second
max_requests_per_sec = 10
# Maximum request size in characters
max_request_size = "1M"
# Maximum npk size in bytes
max_npk_install_size = "100MB"
# NPK stream timeout
npk_stream_timeout = "5s"
[console.global]
# Url
bind = "tcp://localhost:4200"
# Permissions
permissions = "full"
# Debug TCP console on localhost
[debug]
# Start a set of commands after a container is started.
# <PID> is replaced with the init PID of the container.
# <CONTAINER> is replaced with the container name.
# stdout and stderr are redirected to the runtime log.
# The spawned commands are *not* killed when the container is stopped.
commands = [
# "sudo strace -f -s 256 -p <PID>", # strace to log
# "sudo strace -c -p <PID>", # strace to log and count syscalls
# "sudo strace -f -s 256 -p <PID> -o /tmp/strace-<CONTAINER>-<PID>.log" # strace to file
# "sudo perf record -p <PID> -o /tmp/perf-<PID>-<CONTAINER>.perf -g -F 99" # perf to file
]
# NPK Repository `memory` configuration. This is a not persistent in memory repository
[repositories.memory]
type = "mem"
key = "examples/northstar.pub"
# Maximum number of containers that can be stored in this repository.
capacity_num = 10
# Maximum total size of all containers in this repository.
capacity_size= "100MB"
# NPK Repository `default` in `dir`
[repositories.default]
type = { fs = { dir = "target/northstar/repository" }}
key = "examples/northstar.pub"
mount_on_start = true