fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.25k stars 621 forks source link

setting `registry.consul.tagprefix` doesn't seem to work #825

Open far-blue opened 3 years ago

far-blue commented 3 years ago

I'm trying to use the registry.consul.tagprefix config value to change the default urlprefix- to fabio-. I have services in consul passing health checks and registering service tags of the form fabio-... but when I run a Fabio instance with the tag prefix set to fabio- it doesn't find any services.

ketzacoatl commented 2 years ago

@far-blue does it work if you use the default? I'm successfully using this feature in all my deployments, even with the latest stable release (v1.6.0). Are there any logs in fabio related to the tags or the config?

far-blue commented 2 years ago

The default 'urlprefix-' prefix works fine and I've been using fabio in production for a few years now. I was actually wanting to setup support for a 'uat' environment for testing out changes to fabio config on production infrastructure but without interacting with production services so thought changing the tagprefix would be a nice approach.

ketzacoatl commented 2 years ago

When using a non-default tag prefix, are there any useful logs or info you can find in fabio to confirm why that isn't working?

far-blue commented 2 years ago

no, no logs. Everything appears to be working correctly but fabio simply doesn't "see" any services to route.

nathanejohnson commented 2 years ago

@far-blue we're using this feature in production as well (overriding registry.consul.tagprefix for some fabios). Can you help come up with a minimal environment that demonstrates this issue? can you try setting the log level to TRACE ? That might shed some light.