summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2020-03-16 13:39:00 +0200
committerGitHub <noreply@github.com>2020-03-16 13:39:00 +0200
commit161ba1592f5412bd378ace104979ddb66cd33973 (patch)
tree3d278844c5a94b67661312f7138516d725ea6e0e /collectors
parent87fd050461eac9e69f78a075ed896a1eaeabcd04 (diff)
Fix streaming scaling (#8375)
* Disallow multiple streaming connections to the same master agent * Reject multiple streaming connections quickly without blocking * Increase timeout for systemd service shutdown to give time to flush the db. * Optimize page correlation ID to use atomic counter instead of locks * Reduce contention in global configuration mutex * Optimize complexity of inserting configuration sections from O(N) to O(1) * Reduce overhead of clockgettime() by utilizing CLOCK_MONOTONIC_COARSE when applicable. * Fix unit test compile errors
Diffstat (limited to 'collectors')
-rw-r--r--collectors/ebpf_process.plugin/ebpf_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/ebpf_process.plugin/ebpf_process.c b/collectors/ebpf_process.plugin/ebpf_process.c
index 8c7a34aa1a..ce61cf0b99 100644
--- a/collectors/ebpf_process.plugin/ebpf_process.c
+++ b/collectors/ebpf_process.plugin/ebpf_process.c
@@ -809,7 +809,7 @@ static inline void set_log_file(char *ptr) {
}
static void set_global_values() {
- struct section *sec = collector_config.sections;
+ struct section *sec = collector_config.first_section;
while(sec) {
if(!strcasecmp(sec->name, "global")) {
struct config_option *values = sec->values;