Skip to content

Commit 3d897ab

Browse files
authored
Merge pull request #31 from profiq/feature/healthchecks
Add healthchecks for API and live view
2 parents 9459cd9 + a17b39b commit 3d897ab

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

fly-dev.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ kill_signal = "SIGTERM"
2929
hard_limit = 1000
3030
soft_limit = 1000
3131

32+
[[http_service.checks]]
33+
grace_period = "10s"
34+
interval = "30s"
35+
method = "GET"
36+
timeout = "5s"
37+
path = "/"
38+
39+
[[http_service.checks]]
40+
grace_period = "10s"
41+
interval = "30s"
42+
method = "GET"
43+
timeout = "5s"
44+
path = "/api/people"
45+
3246
[[vm]]
3347
cpu_kind = "shared"
3448
cpus = 1

fly.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ kill_signal = "SIGTERM"
2929
hard_limit = 1000
3030
soft_limit = 1000
3131

32+
[[http_service.checks]]
33+
grace_period = "10s"
34+
interval = "30s"
35+
method = "GET"
36+
timeout = "5s"
37+
path = "/"
38+
39+
[[http_service.checks]]
40+
grace_period = "10s"
41+
interval = "30s"
42+
method = "GET"
43+
timeout = "5s"
44+
path = "/api/people"
45+
3246
[[vm]]
3347
cpu_kind = "shared"
3448
cpus = 1

0 commit comments

Comments
 (0)