Hello!
I've been trying to evaluate fabio as a reverse proxy but am having trouble configuring it for our use case: to load balance all traffic (specifically / in this case) to multiple backends. I've gone over the documentation a number of times and spent about half a day trying to configure it for this case with no luck and was hoping you could provide some guidance.
I'm running consul in dev mode with./consul agent -dev -config-dir consul.d with the contents of consul.d/web.json being three test backends all serving a static document at / (Please ignore the silly checks for now)
stevej@proxy-test-16:~/consul.d$ ls
web.json
stevej@proxy-test-16:~/consul.d$ cat web.json
{
"services": [
{
"name": "web",
"id": "perf-target-1",
"tags": ["web"],
"address": "10.240.0.6",
"port": 4140,
"checks":[{"script": "/bin/true"}]
},
{
"name": "web",
"tags": ["web"],
"id": "perf-target-2",
"address": "10.240.0.5",
"port": 4140,
"checks":[{"script": "/bin/true"}]
},
{
"name": "web",
"tags": ["web"],
"id": "perf-target-3",
"address": "10.240.0.7",
"port": 4140,
"checks": [{"script": "/bin/true"}]
}
]
}
I'm running fabio using the instructions in the README and running as bin/fabio with no properties.
When I send a request to / or /web I receive a 404.
stevej@proxy-test-16:~/go$ curl -vvvv http://localhost:9999/web
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9999 (#0)
> GET /web HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:9999
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Fri, 15 Apr 2016 16:37:36 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact
I've confirmed that fabio is bound to that port with netstat -anp
tcp6 0 0 :::9999 :::* LISTEN 3815/fabio
Thanks in advance for any help.
Hello!
I've been trying to evaluate fabio as a reverse proxy but am having trouble configuring it for our use case: to load balance all traffic (specifically / in this case) to multiple backends. I've gone over the documentation a number of times and spent about half a day trying to configure it for this case with no luck and was hoping you could provide some guidance.
I'm running consul in dev mode with
./consul agent -dev -config-dir consul.dwith the contents ofconsul.d/web.jsonbeing three test backends all serving a static document at/(Please ignore the sillychecksfor now)I'm running fabio using the instructions in the README and running as
bin/fabiowith no properties.When I send a request to / or /web I receive a 404.
I've confirmed that fabio is bound to that port with
netstat -anpThanks in advance for any help.