fleet/cmd/fleetctl
Tomas Touceda 7db6de7278
Serialize hosts writes per instance (#2753)
* Serialize hosts writes per instance

* Write hosts asynchronously

* Dont make the save in a goroutine

* Revert "Dont make the save in a goroutine"

This reverts commit 4a890c5271.

* Make all savehosts async

* Address review comments and make this approach configurable

* Address review comments

* Disable bulk seen time marking for a test

* Move host seen times to a new table

* Remove unused

* Add seen_time to list hosts

* Add some jitter to seen time flushing

* Remove unused

* Add timeout to deferred save host

* Add tests for serialSaveHost

* Update hosts in labels and policy executions in a serial way

* Address review comments and remove fk constraints in host software

* Make errCh buffered

* Add changes file

* Readd key
2021-11-08 11:42:37 -03:00
..
testdata Add query description and resolution to the list of policies in hosts (#2584) 2021-10-20 12:07:16 -03:00
api.go Perform early session check on fleetctl commands (#2620) 2021-10-22 15:41:17 -03:00
apply.go Remove policies yaml for now and apply policies in preview (#2644) 2021-10-25 09:17:34 -03:00
apply_test.go Remove policies yaml for now and apply policies in preview (#2644) 2021-10-25 09:17:34 -03:00
config.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
convert.go issue 1313 -- add file destination for convert command (#1672) 2021-08-13 20:42:58 -04:00
convert_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
debug.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
debug_test.go Fix races in go tests and run with -race on CI (#2712) 2021-11-01 15:31:01 -03:00
delete.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
flags.go Add fleetctl debug connection command (#1706) 2021-08-24 08:50:03 -04:00
fleetctl.go Issue 1963 vulnerabilities no sync (#1976) 2021-09-14 10:58:35 -03:00
get.go Add test for fleetctl preview (#2388) 2021-10-07 10:19:10 -03:00
get_test.go Serialize hosts writes per instance (#2753) 2021-11-08 11:42:37 -03:00
goquery.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
hosts.go Issue 1359 fleetctl team transfer (#1413) 2021-07-21 14:03:10 -03:00
hosts_test.go Refactor integration tests (#1821) 2021-09-15 16:27:53 -03:00
kill_process.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
kill_process_windows.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
login.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
logout.go Upgrade fleetctl github.com/urfave/cli to v2 (#471) 2021-03-12 16:42:38 -08:00
package.go Updates and fixes for packaging (#2682) 2021-10-27 16:17:41 -07:00
package_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
preview.go Make vulnerability processing less RAM hungry (#2739) 2021-10-29 11:27:12 -03:00
preview_test.go Update preview tests (#2487) 2021-10-12 11:49:25 -04:00
query.go Fix races in go tests and run with -race on CI (#2712) 2021-11-01 15:31:01 -03:00
query_output.go Support close the websocket of LiveQueryResultsHandler (#1006) 2021-09-10 16:26:39 -03:00
query_test.go Refactor integration tests (#1821) 2021-09-15 16:27:53 -03:00
session_test.go Perform early session check on fleetctl commands (#2620) 2021-10-22 15:41:17 -03:00
setup.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
testing_utils.go Add support for context in datastore/mysql layer (#1962) 2021-09-14 08:11:07 -04:00
user.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
users_test.go Refactor integration tests (#1821) 2021-09-15 16:27:53 -03:00
vulnerability_data_stream.go Issue 1963 vulnerabilities no sync (#1976) 2021-09-14 10:58:35 -03:00
vulnerability_data_stream_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
yaml.go Fix yaml separator handling with comments (#2257) 2020-07-08 16:01:03 -07:00
yaml_test.go Fix yaml separator handling with comments (#2257) 2020-07-08 16:01:03 -07:00