Skip to content

Instantly share code, notes, and snippets.

View schmichael's full-sized avatar

Michael Schurter schmichael

View GitHub Profile

IMPROVEMENTS:

  • api: Added NewSystemJob helper function to create base system job object. [GH-10861]
  • build: no longer use vendor directory [GH-10898]
  • cli: Added a -task flag to alloc restart and alloc signal for consistent UX with alloc exec and alloc logs [GH-10859]
  • consul/connect: automatically set CONSUL_TLS_SERVER_NAME for connect native tasks [GH-10804]
  • ui: Added new screen to dispatch a parameterized batch job [GH-10675]
  • ui: Handle ACL token when running behind a reverse proxy [GH-10563]
github.com/hashicorp/nomad cloud.google.com/go/storage@v1.0.0
github.com/hashicorp/nomad github.com/Azure/go-autorest/autorest@v0.11.4
github.com/hashicorp/nomad github.com/Azure/go-autorest/autorest/azure/auth@v0.5.1
github.com/hashicorp/nomad github.com/LK4D4/joincontext@v0.0.0-20171026170139-1724345da6d5
github.com/hashicorp/nomad github.com/Microsoft/go-winio@v0.4.15-0.20200113171025-3fe6c5262873
github.com/hashicorp/nomad github.com/Microsoft/hcsshim@v0.8.8-0.20200312192636-fd0797d766b1
github.com/hashicorp/nomad github.com/NVIDIA/gpu-monitoring-tools@v0.0.0-20180829222009-86f2a9fac6c5
github.com/hashicorp/nomad github.com/NYTimes/gziphandler@v1.0.1
github.com/hashicorp/nomad github.com/armon/circbuf@v0.0.0-20150827004946-bbbad097214e
github.com/hashicorp/nomad github.com/armon/go-metrics@v0.3.4
job "example" {
datacenters = ["dc1"]
group "cache" {
network {
port "db" {
to = 6379
}
}

raft.apply

Counter of Raft transactions. A general indicator of Raft throughput.

raft.barrier

Counter of Raft barriers. Barriers ensure all members have applied pending operations to their FSM before the barrier completes and new operations can be processed.

job "example" {
datacenters = ["dc1"]
group "cache" {
network {
mode = "bridge"
port "db" {
to = 6379
}
}
job "example-2" {
datacenters = ["dc1"]
group "cache" {
network {
port "db" {
to = 6379
}
}
#log_level = "DEBUG"
data_dir = "/tmp/nomad-client2"
name = "nomad-client2"
client {
enabled = true
servers = ["localhost:4647"]
}

Shell 1:

sudo ~/bin/nomad-1.0.1 agent -dev-connect -log-level info

Shell 2:

~/bin/consul-1.9.0 agent -dev
job "example" {
type = "service"
datacenters = ["dc1"]
group "cache" {
task "redis" {
driver = "raw_exec"
config {
job "example" {
datacenters = ["dc1"]
group "cache" {
task "redis" {
driver = "docker"
config {
image = "alpine:3"
command = "/bin/sh"
args = ["-c", "echo ${attr.unique.network.ip-address}"]
}