consul/logging
Dhia Ayachi d4aa152850 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:20 +00:00
..
monitor improve monitor performance (#10368) 2021-06-15 16:23:20 +00:00
gated_writer.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00
gated_writer_test.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00
grpc.go grpc: move gRPC INFO logs to be emitted as TRACE logs from Consul (#10395) 2021-06-14 20:14:37 +00:00
grpc_test.go grpc: move gRPC INFO logs to be emitted as TRACE logs from Consul (#10395) 2021-06-14 20:14:37 +00:00
log_levels.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00
logfile.go logging: improve tests 2020-11-23 14:41:54 -05:00
logfile_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
logger.go logging: call pruneFiles on startup 2020-11-20 19:07:45 -05:00
logger_test.go logging: Remove t.Parallel from tests 2020-08-27 18:14:46 -04:00
names.go Support Incremental xDS mode (#9855) 2021-04-29 18:54:53 +00:00
syslog.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00