Skip to content
Snippets Groups Projects
Commit 69a02fdd authored by Jan David Mol's avatar Jan David Mol
Browse files

Tune startup latency

parent 5a1c14e2
No related branches found
No related tags found
1 merge request!1087Tune startup latency
...@@ -100,25 +100,9 @@ job "device-servers" { ...@@ -100,25 +100,9 @@ job "device-servers" {
driver = "docker" driver = "docker"
config { config {
image = "[[.registry.astron.url]]/busybox:latest" image = "[[ $.registry.astron.url ]]/busybox:latest"
command = "sh" command = "sh"
args = ["-c", "while ! nc -z ${MYSQL_HOST} ${MYSQL_PORT}; do sleep 1; done"] args = ["-c", "while ! nc -z tango.service.consul 10000; do sleep 1; done"]
}
template {
wait {
min = "30s"
max = "300s"
}
error_on_missing_key = true
data = <<EOH
{{- range service "tangodb" }}
MYSQL_HOST = "{{ .Address }}"
MYSQL_PORT = "{{ .Port }}"
{{- end }}
EOH
destination = "local/env.txt"
env = true
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment