sozu icon indicating copy to clipboard operation
sozu copied to clipboard

sozuctl query applications doesn't return a result

Open BlackYoup opened this issue 4 years ago • 5 comments

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

BlackYoup avatar Sep 15 '21 09:09 BlackYoup

I don't manage to reproduce the bug, locally everything works fine. The issue may occur only when there are thousands of applications present.

Keksoj avatar Sep 16 '21 13:09 Keksoj

Well at least we should have a timeout, so there's that.

Keksoj avatar Sep 22 '21 14:09 Keksoj

The timeout is fixed in

  • #724

Keksoj avatar Nov 09 '21 17:11 Keksoj

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.

Keksoj avatar Nov 15 '21 15:11 Keksoj

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.

Keksoj avatar Mar 09 '22 13:03 Keksoj