Skip to content

Commit

Permalink
memcached: Use script check (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Oct 8, 2024
1 parent 22d3320 commit 60fe6c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jobs/memcached.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ job "memcached" {
}
}

network {
mode = "bridge"
}

service {
name = "memcached"
port = "11211"

check {
type = "tcp"
type = "script"
task = "memcached"
command = "/usr/bin/bash"
args = ["-zv", "localhost", "11211"]
interval = "10s"
timeout = "1s"
}
Expand Down

0 comments on commit 60fe6c2

Please sign in to comment.