forked from fly-apps/postgres-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
50 lines (41 loc) · 917 Bytes
/
fly.toml
File metadata and controls
50 lines (41 loc) · 917 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
41
42
43
44
45
46
47
48
49
50
# fly.toml file generated for postgres-ha-example on 2020-12-22T12:44:02-06:00
app = "postgres-ha-example"
# stop accepting new connections while existing sessions complete
kill_signal = "SIGTERM"
# allow 5 minutes to cleanly shutdown
kill_timeout = 300
[env]
BACKEND_STORE = "etcdv3"
PRIMARY_REGION = "dfw"
[checks.role]
type = "script"
interval = 60000
timeout = 10000
command = "flycheck"
args = [ "role" ]
restart_limit = 0
[checks.pg]
type = "script"
interval = 30000
timeout = 10000
grace_period = "10s"
command = "flycheck"
args = [ "pg" ]
restart_limit = 0
[checks.vm]
type = "script"
interval = 30000
timeout = 10000
command = "flycheck"
args = [ "vm" ]
restart_limit = 0
[experimental]
private_network = true
enable_etcd = true
auto_rollback = false
[metrics]
port = 9187
path = "/metrics"
[mount]
source = "pg_data"
destination = "/data"