sozuctl query applications doesn't return a result
I'm currently trying to query an application using sozuctl -c /etc/sozu/config.toml query applications -i <id> or sozuctl -c /etc/sozu/config.toml query applications -d <domain> but none of those commands ever return.
No weird CPU consumption happens. Sozu version tested: 0.13.6
I don't manage to reproduce the bug, locally everything works fine. The issue may occur only when there are thousands of applications present.
Well at least we should have a timeout, so there's that.
The timeout is fixed in
- #724
The timeout is not fixed actually. Not that #724 doesn't matter, but this seems to be blocking :
https://github.com/sozu-proxy/sozu/blob/d5a7da086f1bc27b60534f99b54b36ebd62c6805/command/src/channel.rs#L289
It could be that this blocks the thread and keeps listening to the proxy event if the proxy does not respond.
It appears the command may just take VERY long to return in case of a huge state.
We should check were the filters are applied, wether in sozuctl or in the main process, and look to fix the filtering if need be.