When setting up RabbitMQ, the default name that is created for a VHost is / (very weird I know). Normally, to use the HTTP API with this VHost, you can provide an encoded slash like %2f which allows you to access the VHost specific parts of the API. The changes introduced in Issue 700 that allowed access to the HTTP API over AMPQ, work when a named VHost is provided but when using either a /, %2f or nothing to represent the default VHost, the scaled object will not work and will be stuck at 0.
I don't know a lick of Go but I've dug through the code and I think some part of the URL parser that is being employed is stripping out the / value as the name of the VHost.
To be able to pass the default VHost name and have the deployment scale up and down.
The deployment immediately scales down to 0 and is unable to poll the API correctly.
This shoulds like a regression bug, right?
We'll have a look at this, sorry about that!
Yeah this is a bug we should fix.
@quoimec would ve great if you can open PR with proposed change, since you have done the investigation.
We will probably release 1.4.1 with some fixes so we could include this as well.
@holyketzer do you think you could take a look on this?
ok
Hey guys, yes it didn't support empty vhost.
I opened a PR with a fix. I tested it in our environment. Now it support all kinds of empty vhosts like: