fleet/server/service/async
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 4a890c5271142755dec69a741582e7eca5c4c62c.

* 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
..
async_bench_test.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
async_test.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
async.go Serialize hosts writes per instance (#2753) 2021-11-08 11:42:37 -03:00
collect_test.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
collect.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
doc.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00