fabio icon indicating copy to clipboard operation
fabio copied to clipboard

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

Open far-blue opened this issue 3 years ago • 5 comments

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.

far-blue avatar Mar 31 '21 11:03 far-blue

@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?

ketzacoatl avatar Jun 20 '22 17:06 ketzacoatl

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.

far-blue avatar Jun 21 '22 13:06 far-blue

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?

ketzacoatl avatar Jun 24 '22 14:06 ketzacoatl

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

far-blue avatar Jun 29 '22 10:06 far-blue

@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.

nathanejohnson avatar Jul 12 '22 02:07 nathanejohnson