Hey folks, we are encountering issues querying in ...
# kolide
Hey folks, we are encountering issues querying in the fleet UI against ~5k hosts. We tend to get partial results or just the spinner. We're wondering if the issue is with websockets and our haproxy setup. Anyone have any experience of getting fleet working behind an haproxy LB? Any tips / tricks please? Thanks!
I'm having that same issue and opened a bug report a couple months ago. From what I can see the DB is maxed out to 100% when I run queries then it just sits and never returns all results. Haven't heard anything to fix this yet
@Daniel Parry @Tim I believe this may help https://github.com/kolide/fleet/issues/2207
In our case, it feels maybe more like https://github.com/kolide/fleet/issues/1980
I am noticing maybe 25 deadlocks a minute in the logs. The suggestion there is to tune the
, and
flags but I'm not exactly sure what values are good, and have not found a good definition yet of what those settings actually do.
I'm also not sure how the values that I see in fleetctl get options relate to the options set in the osqueryd flags. Much confusion 🙂
well, https://osquery.readthedocs.io/en/stable/installation/cli-flags/#distributed-query-service-flags helps a bit, but gives no real guidance on tuning. Currently I have --distributed_interval=30 --config_refresh=300 and --logger_tls_period=300
On further investigation, it seems that querying 5000 hosts via fleetctl works fine. When using firefox we sometimes get partial results and then the querying stalls and with chrome querying never works. This leads me to think that there is variation in the websockets libraries in use where the browser variations are exposing some weird interaction with haproxy that causes them to fail. Will look into it some more in the week!