Skip to content

Commit

Permalink
chore: increase nomad heartbeat ttl (#1140)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->
**MERGE BEFORE PB STACK** https://app.graphite.dev/github/pr/rivet-gg/rivet/1165/feat-pegboard-get-container-connection-e2e
## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Sep 28, 2024
1 parent 38584c9 commit 437494a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions infra/tf/k8s_infra/nomad.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ locals {
retry_join = [${join(", ", local.nomad_server_addrs_escaped)}]
retry_interval = "10s"
}
# Increase grace period for intermittent cross-region
# connection issues. These are usually compounded by the
# fact that everything is sent through a tunnel, requiring 2x
# the latency in order to reconnect to the server.
#
# We kill all jobs on a node when the jobs are lost, so we want to be
# extra generous about considering a node as lost.
#
# The default behavior is 10s for the heartbeat TTL + 10s for
# heartbeat grace.
#
# This behavior will sent a heartbeat every 15s but wait 2m
# before considering a node as lost and killing all
# allocations.
heartbeat_grace = "2m"
min_heartbeat_ttl = "15s"
}
telemetry {
Expand Down

0 comments on commit 437494a

Please sign in to comment.