{
  "consul": "{{ if .CONSUL_AGENT }}localhost{{ else }}{{ .CONSUL }}{{ end }}:8500",
  "preStart": "python /usr/local/bin/manage.py",
  "logging": {
    "level": "{{ if .LOG_LEVEL }}{{ .LOG_LEVEL }}{{ else }}INFO{{ end }}"
  },
  "services": [
    {
      "name": "mysql",
      "port": 3306,
      "health": "python /usr/local/bin/manage.py health",
      "poll": 5,
      "ttl": 25
    }
  ],
  "backends": [
    {
      "name": "mysql-primary",
      "poll": 10,
      "onChange": "python /usr/local/bin/manage.py on_change"
    }
  ],
  "tasks": [
    {
      "name": "snapshot_check",
      "command": "python /usr/local/bin/manage.py snapshot_task",
      "frequency": "10s",
      "timeout": "10m"
    }
  ],
  "coprocesses": [{{ if .CONSUL_AGENT }}
    {
      "name": "consul-agent (host:{{ .CONSUL }})",
      "command": ["/usr/local/bin/consul", "agent",
                  "-data-dir=/data",
                  "-config-dir=/config",
                  "-rejoin",
                  "-retry-join", "{{ .CONSUL }}",
                  "-retry-max", "10",
                  "-retry-interval", "10s"],
      "restarts": "unlimited"
    }{{ end }}
  ]
}

{
  "consul": "{{ if .CONSUL_AGENT }}localhost{{ else }}{{ .CONSUL }}{{ end }}:8500",
  "preStart": "python /usr/local/bin/manage.py",
  "logging": {
    "level": "{{ if .LOG_LEVEL }}{{ .LOG_LEVEL }}{{ else }}INFO{{ end }}"
  },
  "services": [
    {
      "name": "mysql",
      "port": 3306,
      "health": "python /usr/local/bin/manage.py health",
      "poll": 5,
      "ttl": 25
    }
  ],
  "backends": [
    {
      "name": "mysql-primary",
      "poll": 10,
      "onChange": "python /usr/local/bin/manage.py on_change"
    }
  ],
  "tasks": [
    {
      "name": "snapshot_check",
      "command": "python /usr/local/bin/manage.py snapshot_task",
      "frequency": "5m",
      "timeout": "10m"
    }
  ],
  "coprocesses": [{{ if .CONSUL_AGENT }}
    {
      "name": "consul-agent (host:{{ .CONSUL }})",
      "command": ["/usr/local/bin/consul", "agent",
                  "-data-dir=/data",
                  "-config-dir=/config",
                  "-rejoin",
                  "-retry-join", "{{ .CONSUL }}",
                  "-retry-max", "10",
                  "-retry-interval", "10s"],
      "restarts": "unlimited"
    }{{ end }}
  ]
}

Move snapshot check frequency to something reasonable
Move snapshot check frequency to something reasonable
