Skip to content

Commit

Permalink
add always restart policy so apps dont lose it when deployed from con…
Browse files Browse the repository at this point in the history
…f files (#1005)

Signed-off-by: microwavedcola1 <[email protected]>
  • Loading branch information
microwavedcola1 authored Sep 2, 2024
1 parent a2fac4c commit 3f367be
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cd/fills.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ kill_timeout = 30
[metrics]
path = "/metrics"
port = 9091

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/health.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ kill_timeout = 30

[experimental]
cmd = ["service-mango-health", "health-config.toml"]

[[restart]]
policy = "always"
5 changes: 4 additions & 1 deletion cd/keeper.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ kill_timeout = 30

[metrics]
port = 9091
path = "/metrics"
path = "/metrics"

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/liquidator.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ kill_timeout = 30

[build]
dockerfile = "../bin/liquidator/Dockerfile.liquidator"

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/mm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ kill_timeout = 30

[build]
dockerfile = "../ts/client/scripts/mm/Dockerfile.mm"

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/orderbook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ kill_timeout = 5
[metrics]
path = "/metrics"
port = 9091

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/pnl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ kill_timeout = 5
[metrics]
path = "/metrics"
port = 9091

[[restart]]
policy = "always"
3 changes: 3 additions & 0 deletions cd/switchboard-crank.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ kill_timeout = 5
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"

[[restart]]
policy = "always"

0 comments on commit 3f367be

Please sign in to comment.