how do I reload? am I doing something wrong?
I am using 3.2 and I have tried to reload the config after a backend change.
I have the stats page open and I am reloading using a sighup ie docker-compose kill -s HUP haproxy.
The logs shows a reload happen but I do not see the changes reflected in the stats page.
I can verify this by removing a backend server or changing the stats page refresh time from 5s to 30s.
Maybe in the underlying structure it reloads but it's not reflected in the stats page.
I am unsure if I am doing something wrong or not.
Also, since there is not ps or other tool I do not know the default pid file if there is (I couldn't find one) so I cannot find the pid of the haproxy process so I can try to run some cli command that will use the pid to do that.
It's probably not required since I see in the container logs that a reload was triggered.
Thanks in advance
I have seen the next issue: https://github.com/docker-library/haproxy/issues/31#issuecomment-247680432
which makes sense of things, however, I think that there should be some notification or indication if the config file was actually changed or not. It's like flying blind.. Or, if the usage of a file mount will be an issue to reloading the config, recommend using a directory by default in such setups.
Our documentation does already recommend mounting a full directory though: 😅
https://github.com/docker-library/docs/tree/41ae14dcd60c6061ee2727c4f5c6d26862d0aa3d/haproxy#directly-via-bind-mount