forked from plastic-labs/honcho
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
40 lines (32 loc) · 740 Bytes
/
fly.toml
File metadata and controls
40 lines (32 loc) · 740 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
40
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
app = 'honcho'
primary_region = 'ewr'
kill_signal = 'SIGINT'
kill_timeout = '5s'
[build]
[processes]
api = 'fastapi run src/main.py'
deriver = 'python -m src.deriver'
[http_service]
internal_port = 8000
auto_stop_machines = 'off'
auto_start_machines = true
min_machines_running = 3
processes = ['api']
[http_service.concurrency]
type = 'requests'
hard_limit = 50
soft_limit = 20
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
processes = ['api', 'deriver']
[[metrics]]
port = 8000
path = "/metrics"
processes = ["api"]
[[metrics]]
port = 9090
path = "/metrics"
processes = ["deriver"]