peanut butter
01/17/2023, 9:23 PMKathy Satterlee
01/18/2023, 4:48 PMFLEET_LIVE_QUERY_REST_PERIOD
. Bear with me while I get some clarification from the team on the ins and outs of that.peanut butter
01/20/2023, 7:03 PMKathy Satterlee
01/20/2023, 7:11 PMThe fixed time period is configurable via environment variable on the Fleet server (eg.). If setting a higher value, be sure that you do not exceed your load balancer timeout.FLEET_LIVE_QUERY_REST_PERIOD=90s
> WARNING: This API endpoint collects responses in-memory (RAM) on the Fleet compute instance handling this request, which can overflow if the result set is large enough. This has the potential to crash the process and/or cause an autoscaling event in your cloud provider, depending on how Fleet is deployed.https://fleetdm.com/docs/using-fleet/rest-api#run-live-query
peanut butter
01/21/2023, 12:53 PMexceed your load balancer timeout.
Kathy Satterlee
01/23/2023, 3:19 PMpeanut butter
01/23/2023, 7:11 PMKathy Satterlee
01/23/2023, 7:28 PMFLEET_LIVE_QUERY_REST_PERIOD=90s
As a command line flag:
/usr/bin/fleet serve \
--mysql_address=127.0.0.1:3306 \
--mysql_database=fleet \
--mysql_username=root \
--mysql_password=toor \
--redis_address=127.0.0.1:6379 \
--server_cert=/tmp/server.cert \
--server_key=/tmp/server.key \
--logging_json
--live_query_rest_period=90s
or in a .yaml
config file:
echo '
mysql:
address: 127.0.0.1:3306
database: fleet
username: root
password: toor
redis:
address: 127.0.0.1:6379
server:
cert: /tmp/server.cert
key: /tmp/server.key
logging:
json: true
live_query_rest_period: 90s
' > /tmp/fleet.yml
fleet serve --config /tmp/fleet.yml
peanut butter
01/24/2023, 9:35 PMzwass
01/27/2023, 6:11 PMpeanut butter
01/30/2023, 8:27 PMFLEET_MYSQL_ADDRESS
but I don't see the varrible FLEET_LIVE_QUERY_REST_PERIOD=90sKathy Satterlee
01/30/2023, 9:58 PMFLEET_LIVE_QUERY_REST_PERIOD
is a bit of a special case and can currently only be set as an environmental variable. So sorry about the confusion! I'm submitting a ticket now to get that more in line with the other configuration options. For now, you can set it using the environment.peanut butter
01/31/2023, 8:36 PMKathy Satterlee
01/31/2023, 8:43 PMpeanut butter
02/01/2023, 7:43 PM