Running fabio to use in nomad with consul, I wish to use nomad to register service, but if put false to -registry.consul.register.enabled, continue trying to register
./fabio -registry.consul.register.enabled=false
2017/08/30 11:08:28 [INFO] Runtime config
{
"Proxy": {
"Strategy": "rnd",
"Matcher": "prefix",
"NoRouteStatus": 404,
"MaxConn": 10000,
"ShutdownWait": 0,
"DialTimeout": 30000000000,
"ResponseHeaderTimeout": 0,
"KeepAliveTimeout": 0,
"FlushInterval": 1000000000,
"LocalIP": "10.21.0.248",
"ClientIPHeader": "",
"TLSHeader": "",
"TLSHeaderValue": "",
"GZIPContentTypes": null,
"RequestID": ""
},
"Registry": {
"Backend": "consul",
"Static": {
"Routes": ""
},
"File": {
"Path": ""
},
"Consul": {
"Addr": "localhost:8500",
"Scheme": "http",
"Token": "",
"KVPath": "/fabio/config",
"TagPrefix": "urlprefix-",
"Register": false,
"ServiceAddr": ":9998",
"ServiceName": "fabio",
"ServiceTags": null,
"ServiceStatus": [
"passing"
],
"CheckInterval": 1000000000,
"CheckTimeout": 3000000000,
"CheckScheme": "http",
"CheckTLSSkipVerify": false
},
"Timeout": 10000000000,
"Retry": 500000000
},
"Listen": [
{
"Addr": ":9999",
"Proto": "http",
"ReadTimeout": 0,
"WriteTimeout": 0,
"CertSource": {
"Name": "",
"Type": "",
"CertPath": "",
"KeyPath": "",
"ClientCAPath": "",
"CAUpgradeCN": "",
"Refresh": 0,
"Header": null
},
"StrictMatch": false,
"TLSMinVersion": 0,
"TLSMaxVersion": 0,
"TLSCiphers": null
}
],
"Log": {
"AccessFormat": "common",
"AccessTarget": "",
"RoutesFormat": "delta"
},
"Metrics": {
"Target": "",
"Prefix": "{{clean .Hostname}}.{{clean .Exec}}",
"Names": "{{clean .Service}}.{{clean .Host}}.{{clean .Path}}.{{clean .TargetURL.Host}}",
"Interval": 30000000000,
"GraphiteAddr": "",
"StatsDAddr": "",
"Circonus": {
"APIKey": "",
"APIApp": "fabio",
"APIURL": "",
"CheckID": "",
"BrokerID": ""
}
},
"UI": {
"Listen": {
"Addr": ":9998",
"Proto": "http",
"ReadTimeout": 0,
"WriteTimeout": 0,
"CertSource": {
"Name": "",
"Type": "",
"CertPath": "",
"KeyPath": "",
"ClientCAPath": "",
"CAUpgradeCN": "",
"Refresh": 0,
"Header": null
},
"StrictMatch": false,
"TLSMinVersion": 0,
"TLSMaxVersion": 0,
"TLSCiphers": null
},
"Color": "light-green",
"Title": "",
"Access": "rw"
},
"Runtime": {
"GOGC": 800,
"GOMAXPROCS": 4
},
"ProfileMode": "",
"ProfilePath": "/tmp"
}
2017/08/30 11:08:28 [INFO] Version 1.5.2 starting
2017/08/30 11:08:28 [INFO] Go runtime is go1.8.3
2017/08/30 11:08:28 [INFO] Metrics disabled
2017/08/30 11:08:28 [INFO] Setting GOGC=800
2017/08/30 11:08:28 [INFO] Setting GOMAXPROCS=4
2017/08/30 11:08:28 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:28 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:29 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:29 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:30 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:30 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:31 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:31 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:32 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:32 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:33 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:33 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:34 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:34 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:35 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:35 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:36 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:36 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:37 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:37 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:38 [WARN] Error initializing backend. Get http://localhost:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused
2017/08/30 11:08:38 [FATAL] Timeout registering backend.
Running fabio to use in nomad with consul, I wish to use nomad to register service, but if put false to -registry.consul.register.enabled, continue trying to register
see logs