Closed aleksraiden closed 10 months ago
If you want a TCP service to be accessible on port 6001 then you need to tag it with "urlprefix-:6001 proto=tcp", your service registration to consul will still have your (containers?) listening on 28186.
(swap the urlprefix for kvrocksprefix by configuring registry.consul.tagprefix)
If you want a TCP service to be accessible on port 6001 then you need to tag it with "urlprefix-:6001 proto=tcp", your service registration to consul will still have your (containers?) listening on 28186.
(swap the urlprefix for kvrocksprefix by configuring registry.consul.tagprefix)
Thanks for helping. In my case, I have a dedicated fabio for each service and I splitting they by prefix (using option registry.consul.tagprefix uniq for each). You think that's all problems in this point? If yes, please, help me, how to split a correct each service by it's own fabio?
By in experiment, I create a fabio instance with no consul, only add a static route - and have this message (No route) too...
Sorry, my mistake, all work OK. A port in Consul tag using for select route port. not a destination. All works for me, thanks @torwig for help
I'll check all 1.6.х versions.
So, I test with just simple config:
proxy.addr = 127.0.0.1:6001;proto=tcp
Then, I register my service (Redis-like db) into Consul (yeah, consul enabled by fabio config too) with tag:
kvrocksprefix-:28186 proto=tcp
- and service works in 28186 port.Fabio after start correct add new route: `
`
But every try to connect via 127.0.0.1:6001 get a closing session and [WARN] No route for :6001 in fabio log.
P.S. http rounting in same config are OK, via UI I see may route too...