-
Notifications
You must be signed in to change notification settings - Fork 1
/
Legion.example.yml
47 lines (34 loc) · 1.11 KB
/
Legion.example.yml
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
# Whether to prepare containers on startup.
prepare-containers: true
# Interval in minutes to kill all legion-related running containers.
cleanup-interval: 10
# Whether to update legion-related images on startup.
update-images: true
# Port to run Legion on.
port: 3000
# Whether to skip checking if docker exists.
skip-docker-check: false
# Language-related configuration.
language:
# The languages to enable.
# The names of the languages are as in the `languages` folder.
enabled:
- javascript
- rust
- c
# The OCI runtime to use when running a container.
runtime: runc
# The maximum memory & memory-swap of a container in megabytes.
memory: 256
# The number of CPUs to use.
cpus: 0.25
# Time in seconds for an evaluation before the container will exit.
timeout: 30
# The maximum number of retries when the evaluation fails for a non-timeout related cause.
retries: 3
# Maximum number of processes per evaluation.
max-process-count: 128
# Maximum number of open files per evaluation
max-open-files: 2048
# Maximum file size in bytes for a file.
max-file-size: 20_000_000