consul/logging
Dhia Ayachi 658ea0eef8 improve monitor performance (#10368)
* remove flush for each write to http response in the agent monitor endpoint

* fix race condition when we stop and start monitor multiple times, the doneCh is closed and never recover.

* start log reading goroutine before adding the sink to avoid filling the log channel before getting a chance of reading from it

* flush every 500ms to optimize log writing in the http server side.

* add changelog file

* add issue url to changelog

* fix changelog url

* Update changelog

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>

* use ticker to flush and avoid race condition when flushing in a different goroutine

* stop the ticker when done

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>

* Revert "fix race condition when we stop and start monitor multiple times, the doneCh is closed and never recover."

This reverts commit 1eeddf7a

* wait for log consumer loop to start before registering the sink

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
2021-06-15 16:23:29 +00:00
..
monitor improve monitor performance (#10368) 2021-06-15 16:23:29 +00:00
gated_writer.go
gated_writer_test.go
grpc.go Merge pull request #8540 from hashicorp/dnephin/logging-setup-cleanup 2020-08-26 17:16:15 -04:00
grpc_test.go Merge pull request #8511 from hashicorp/dnephin/agent-setup 2020-08-26 17:15:12 -04:00
log_levels.go
logfile.go
logfile_test.go
logger.go Merge pull request #8540 from hashicorp/dnephin/logging-setup-cleanup 2020-08-26 17:16:15 -04:00
logger_test.go Merge pull request #8540 from hashicorp/dnephin/logging-setup-cleanup 2020-08-26 17:16:15 -04:00
names.go Avoid potential proxycfg/xDS deadlock using non-blocking send 2021-02-08 23:18:38 +00:00
syslog.go